Skip to content

Commit

Permalink
activate test env
Browse files Browse the repository at this point in the history
needed for codecov to find necessary commands

codecov appears to need git as well

environment variables must be set at runtime using a weird [$BASH_ENV trick](https://circleci.com/docs/2.0/env-vars/#using-bash_env-to-set-environment-variables) since circle doesn't support simple `PATH: bin:$PATH` in the environment variable spec.
  • Loading branch information
minrk committed Aug 1, 2018
1 parent 573956e commit 9e76345
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- run:
name: install python
command: |
apt-get update --yes && apt-get install --yes python3 python3-venv
apt-get update --yes && apt-get install --yes python3 python3-venv git
# Download and cache dependencies
- restore_cache:
Expand All @@ -26,12 +26,13 @@ jobs:
name: Setup venv
command: |
python3 -m venv /srv/venv
echo 'export PATH=/srv/venv/bin:$PATH' >> $BASH_ENV
- run:
name: install dependencies
command: |
/srv/venv/bin/pip install -r dev-requirements.txt
/srv/venv/bin/pip install -e .
pip install -r dev-requirements.txt
pip install -e .
- save_cache:
paths:
Expand All @@ -41,12 +42,12 @@ jobs:
- run:
name: run unit tests
command: |
/srv/venv/bin/py.test --cov=tljh tests/
py.test --cov=tljh tests/
- run:
name: upload code coverage stats
command: |
/srv/venv/bin/codecov
codecov
integration-test:
docker:
Expand Down

0 comments on commit 9e76345

Please sign in to comment.