Skip to content

Commit

Permalink
WIP: envt vars
Browse files Browse the repository at this point in the history
  • Loading branch information
stnava committed Mar 14, 2019
1 parent 5ac1392 commit fa21b56
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,31 @@ 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:
- v1-dependencies-{{ checksum "requirements.txt" }}
# 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:
Expand Down

0 comments on commit fa21b56

Please sign in to comment.