Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Joachim Jablon committed Dec 13, 2019
1 parent f217955 commit 09f3046
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
29 changes: 17 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ matrix:
env:
TOX_ENV: py36-unit-tests
COVERAGE_FLAG: unit

- python: 3.6
env:
TOX_ENV: py36-integration-tests
Expand All @@ -24,31 +25,32 @@ matrix:
PGHOST: 127.0.0.1
COVERAGE_FLAG: integration

- python: 3.7
- python: 3.6
env:
TOX_ENV: py37-unit-tests
COVERAGE_FLAG: unit
TOX_ENV: py36-acceptance-tests
PGUSER: postgres
PGPORT: 5432
PGPASSWORD: ""
PGHOST: 127.0.0.1
COVERAGE_FLAG: ""

- python: 3.7
env:
TOX_ENV: py37-integration-tests
TOX_ENV: py37-unit-tests,py37-integration-tests,py37-acceptance-tests
PGUSER: postgres
PGPORT: 5432
PGPASSWORD: ""
PGHOST: 127.0.0.1
COVERAGE_FLAG: integration
COVERAGE_FLAG: ""

- python: 3.8
env:
TOX_ENV: py38-unit-tests
COVERAGE_FLAG: unit
- python: 3.8
env:
TOX_ENV: py38-integration-tests
TOX_ENV: py38-unit-tests,py38-integration-tests,py38-acceptance-tests
PGUSER: postgres
PGPORT: 5432
PGPASSWORD: ""
PGHOST: 127.0.0.1
COVERAGE_FLAG: integration
COVERAGE_FLAG: ""

install:
- pip install tox codecov
Expand All @@ -57,4 +59,7 @@ script:
- tox -e $TOX_ENV

after_success:
- bash <(curl -s https://codecov.io/bash) -c -F $COVERAGE_FLAG
- |
if [ -n "$COVERAGE_FLAG" ];
then bash <(curl -s https://codecov.io/bash) -c -F $COVERAGE_FLAG;
fi
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{36}-{integration,unit}-tests,check-lint
py{36,37,38}-{integration,unit,acceptance}-tests,check-lint

[testenv]
whitelist_externals = make
Expand All @@ -12,6 +12,7 @@ commands =
pip freeze -l
unit-tests: pytest tests/unit
integration-tests: pytest tests/integration
acceptance-tests: pytest tests/acceptance

[testenv:check-lint]
extras =
Expand Down Expand Up @@ -58,4 +59,3 @@ commands =
# If this line breaks, fix with:
# sort -bdfi docs/spelling_wordlist.txt -o docs/spelling_wordlist.txt
sort -cbdfi docs/spelling_wordlist.txt

0 comments on commit 09f3046

Please sign in to comment.