Build error on travis-ci
Use Ubuntu Xenial and Python 3.6
OracleJDK8 is not supported anymore by travis-ci on Xenial, switch to OpenJDK
# limitations under the License.
sudo: false
-dist: trusty
+dist: xenial
env:
global:
- - MONGODB=4.0.9
+ - MONGODB=4.0.16
matrix:
- MODULE=oak-jcr PROFILE="-PintegrationTesting" UT="-Dsurefire.skip.ut=true" MONGODB_MODE="--single"
- MODULE=oak-jcr PROFILE="" UT="" MONGODB_MODE="--single"
@@ -34,7 +34,10 @@ install:
- tar --skip-old-files -C $HOME/.mongodb -xf $HOME/.mongodb/mongodb-linux-x86_64-${MONGODB}.tgz
- mkdir -p target/mongodb/data
- cd target/mongodb
- - virtualenv mtools
+ - pyenv versions
+ - pyenv global 3.6
+ - python -V
+ - python -m venv mtools
- source mtools/bin/activate
- pip install --upgrade pip
- pip install python-dateutil psutil pymongo mtools
@@ -44,7 +47,7 @@ install:
script: mvn --batch-mode clean verify -DtrimStackTrace=false -Dbaseline.skip=true ${UT} ${PROFILE} -Dnsfixtures=DOCUMENT_NS -pl :${MODULE} -nsu
language: java
jdk:
- - oraclejdk8
+ - openjdk8
cache:
directories:
- $HOME/.m2
@@ -52,8 +55,6 @@ cache:
addons:
apt:
packages:
- - python
- python-pip
- - python-virtualenv
notifications:
email: false
