-
Notifications
You must be signed in to change notification settings - Fork 28
/
.travis.yml
54 lines (43 loc) · 1.26 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
dist: xenial # Python3.4 for trusty Python3.5 for xenial
group: edge
language: java
sudo: required
jdk: openjdk11
env:
- SCRIPT=travis-coverage.sh
- SCRIPT=travis-jar.sh
# - SCRIPT=travis-dspot-maven.sh
- SCRIPT=travis-checkstyle.sh
- SCRIPT=travis-dhell.sh
- SCRIPT=travis-ci-xwiki.sh
- SCRIPT=travis-diff-test-selection.sh
- SCRIPT=travis-prettifier.sh
# - SCRIPT=travis-dspot-maven-cmd-line.sh TODO FIX ME
cache:
directories:
- $HOME/.m2
before_install:
- sudo apt-get update
- sudo apt-get install python3
- sudo apt-get install python3-pip
- sudo apt-get install python3-setuptools
- sudo pip3 install --upgrade setuptools
# Pull Mongodb image to test
- docker pull mongo:latest
- docker run -d --net=host mongo:latest
install:
- export DSPOT_VERSION=`grep '<version>' dspot/pom.xml | head -n 1 | sed -e 's/<version>//' -e 's/<\\/version>//' -e 's/ *//g'`
- export MAVEN_HOME=`mvn --version | grep 'Maven home' | sed -e 's/Maven h.* //'`
- mvn compile --quiet
- cd dspot && ./src/main/bash/update-classes-in-resources.sh
- cd ..
- mvn install -DskipTests -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true
- python3 --version
- which python3
script:
- ./.travis/$SCRIPT $DSPOT_VERSION
after_success:
- ./.travis/travis-deploy.sh
branch:
only:
- master