Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
Clean .travis.yml up (#44)
Browse files Browse the repository at this point in the history
* Use TOXENV variable in travis
* Make coverage not silently fail anymore
* Remove unused and unset SKIP_NETWORK_TESTS
* Remove useless dist section and comment why we need sudo
  • Loading branch information
JohanLorenzo committed Aug 1, 2018
1 parent 8eeb552 commit bc2d1c8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
dist: trusty
sudo: required
sudo: required # Needed to install a recent version of OpenJDK as well as Python 3.7

language: python

Expand All @@ -17,15 +16,10 @@ matrix:
TOXENV=py37
JDK_SWITCH=openjdk8

env:
- SKIP_NETWORK_TESTS=0

install:
- travis_retry pip install tox
- jdk_switcher use "${JDK_SWITCH}"
script:
- java -version
- TOX_ENVIRONMENT="py${TRAVIS_PYTHON_VERSION//./}"
- tox -e "$TOX_ENVIRONMENT"
after_success:
- if [[ $TOX_ENVIRONMENT == 'py36' ]] ; then tox -e py36-coveralls; else echo "No coverage to do"; fi
- tox -e "$TOXENV"
- if [[ $TOXENV == 'py36' ]] ; then tox -e py36-coveralls; else echo "No coverage to do"; fi

0 comments on commit bc2d1c8

Please sign in to comment.