From eacb510d3abaa5584092a1197dd0914194cb295f Mon Sep 17 00:00:00 2001 From: Stoney Jackson Date: Mon, 22 Apr 2024 14:00:18 +0000 Subject: [PATCH] wip: restore dev environment --- .gitpod.yml | 67 ++++++++++++++++++++++++----------------------------- 1 file changed, 30 insertions(+), 37 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index f3c00993..0b7a3f17 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -2,41 +2,34 @@ image: gitpod/workspace-full:latest tasks: - # - name: Install Dev Environment - # command: | - # echo "INSTALLING latest JAVA (a PLCC dependency)" - # sdk install java < /dev/null - # echo "" - # echo "INSTALLING PLCC" - # echo 'export PATH="$GITPOD_REPO_ROOT/plcc/bin:$PATH"' >> "$HOME/.bashrc" - # echo "" - # echo "INSTALLING reuse (for licenses: https://reuse.software/)" - # pip install --upgrade pip - # pip install pipx - # pipx install reuse - # echo "" - # echo "INSTALLING ag (for searching: https://github.com/ggreer/the_silver_searcher)" - # sudo apt-get update - # sudo apt-get --no-install-recommends install silversearcher-ag - # echo "" - # echo "INSTALLING bats (for testing: https://bats-core.readthedocs.io/en/latest/index.html)" - # export BATS_VERSION=v1.11.0 \ - # && sudo apt-get update \ - # && sudo apt-get install -y \ - # git \ - # && sudo apt-get clean \ - # && sudo rm -rf /var/lib/apt/lists/* \ - # && sudo git clone https://github.com/bats-core/bats-core.git \ - # && cd bats-core \ - # && sudo git checkout $BATS_VERSION \ - # && sudo ./install.sh /usr/local \ - # && cd .. \ - # && sudo rm -rf bats-core - # exec bash - - - name: Install PLCC + - name: Install Dev Environment command: | - PLCC_GIT_BRANCH=reorg /bin/bash -c "$(\ - \curl -fsSL https://github.com/ourPLCC/plcc/raw/reorg/installers/plcc/install.bash \ - )" >> ~/.bashrc - exec bash + echo "INSTALLING latest JAVA (a PLCC dependency)" + sdk install java < /dev/null + echo "" + echo "INSTALLING PLCC from source" + echo 'export PATH="$GITPOD_REPO_ROOT/plcc/bin:$PATH"' >> "$HOME/.bashrc" + echo "" + echo "INSTALLING reuse (for licenses: https://reuse.software/)" + pip install --upgrade pip + pip install pipx + pipx install reuse + echo "" + echo "INSTALLING ag (for searching: https://github.com/ggreer/the_silver_searcher)" + sudo apt-get update + sudo apt-get --no-install-recommends install silversearcher-ag + echo "" + echo "INSTALLING bats (for testing: https://bats-core.readthedocs.io/en/latest/index.html)" + export BATS_VERSION=v1.11.0 \ + && sudo apt-get update \ + && sudo apt-get install -y \ + git \ + && sudo apt-get clean \ + && sudo rm -rf /var/lib/apt/lists/* \ + && sudo git clone https://github.com/bats-core/bats-core.git \ + && cd bats-core \ + && sudo git checkout $BATS_VERSION \ + && sudo ./install.sh /usr/local \ + && cd .. \ + && sudo rm -rf bats-core + exec bash