diff --git a/.travis.yml b/.travis.yml index b539e8965..94e31febe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,20 +5,53 @@ 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 + #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 + - stage: Test + name: "Python 3.7 tests" + install: + - pip install "virtualenv<20.0.0" tox + language: python # This can't be java and python at the same time + python: 3.7 + env: + # Required when not setting 'language: java' to force the correct jdk + - PATH=$(echo "$PATH" | sed -e 's/:\/usr\/local\/lib\/jvm\/openjdk11\/bin//') + - JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk-amd64" + jdk: + - openjdk8 # sbt +compile fails on jdk11 (xenial's default) + dist: xenial # Travis won't install py37 on trusty + script: + - echo $TRAVIS_SCALA_VERSION + - echo $PATH + - echo $JAVA_HOME + - sbt +compile + - tox -c python/tox.ini -e py37 -v notifications: on_success: change