diff --git a/.circleci/config.yml b/.circleci/config.yml index 84fe66fd..270cfd17 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,13 +18,14 @@ jobs: working_directory: ~/repo - machine: - environment: - PATH: "/home/ubuntu/cmake-3.14.0/bin:$PATH" - steps: - checkout + - run: + name: "Setup custom environment variables" + command: | + echo 'export PATH="/home/ubuntu/cmake-3.14.0/bin:$PATH"' >> $BASH_ENV # Redirect MY_ENV_VAR into $BASH_ENV + # Download and cache dependencies - restore_cache: keys: @@ -32,15 +33,16 @@ jobs: # fallback to using the latest cache if no exact match is found - v1-dependencies- + - run: + name: Install CMAKE + command: ' cd ~ && wget --quiet https://github.com/Kitware/CMake/releases/download/v3.14.0/cmake-3.14.0.tar.gz && tar -xvf cmake-3.14.0.tar.gz' + - run: name: install dependencies command: | python3 -m venv venv . venv/bin/activate pip install -r requirements.txt - - run: - name: Install CMAKE - command: ' cd ~ && wget --quiet https://github.com/Kitware/CMake/releases/download/v3.14.0/cmake-3.14.0.tar.gz && tar -xvf cmake-3.14.0.tar.gz' - save_cache: paths: