forked from STAMP-project/dspot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (39 loc) · 1.06 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
dist: trusty
group: edge
language: java
sudo: required
jdk: openjdk8
env:
- SCRIPT=travis-openjdk8.sh
- SCRIPT=travis-oraclejdk8.sh
- 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
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
- 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