Skip to content

Commit

Permalink
Moving to Travis stages because python various virtualenv were not be…
Browse files Browse the repository at this point in the history
…ing run with the correct python version - pin virtualenv to be <20.0.0 because of pypa/virtualenv#1551 - use different distro for py37 tests
  • Loading branch information
lucagiovagnoli committed Feb 13, 2020
1 parent 7a76df5 commit 8032b98
Showing 1 changed file with 38 additions and 13 deletions.
51 changes: 38 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,45 @@ dist: trusty
services:
- docker

language: scala
scala:
- 2.11.8

python:
- "2.7"
- "3.6"
- "3.7"

install:
- pip install --user tox
script:
- travis/travis.sh
- tox -c python/tox.ini -e $(echo py$TRAVIS_PYTHON_VERSION | tr -d .) -v
jobs:
include:
- stage: "Mleap tests"
name: "Scala Tests"
language: scala
scala:
- 2.11.8
script:
- travis/travis.sh
-
name: "Python 2.7 tests"
install:
- pip install "virtualenv<20.0.0" tox
language: python
python: 2.7
script:
- sbt +compile
- tox -c python/tox.ini -e py27 -v
-
name: "Python 3.6 tests"
install:
- pip install "virtualenv<20.0.0" tox
language: python
python: 3.6
script:
- sbt +compile
- tox -c python/tox.ini -e py36 -v
-
name: "Python 3.7 tests"
install:
- pip install "virtualenv<20.0.0" tox
language: python
python: 3.7
dist: xenial
script:
- echo $JAVA_HOME
- sbt +compile
- tox -c python/tox.ini -e py37 -v

notifications:
on_success: change
Expand Down

0 comments on commit 8032b98

Please sign in to comment.