forked from IASI-SAKS/groucho
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (44 loc) · 1.17 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
# dist: bionic
# dist: xenial
dist: trusty
language: java
jdk:
# - openjdk9
- oraclejdk8
# - openjdk8
# We need to avoid sudo for caching on Travis
# http://docs.travis-ci.com/user/caching/
sudo: false
python:
- "2.7"
addons:
sonarcloud:
organization: iasi-saks
apt:
packages:
- curl
- gcc
- make
- maven
- build-essential
- sed
# - python-pip
# - openjdk-8-jdk
cache:
directories:
- $HOME/.m2
- $HOME/.sonar/cache
install:
- pip --version
- pip install --help
- export JAVA_HOME=`dirname $(dirname $(readlink -f $(which javac)))`
# - export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/"
- export MAVEN_SKIP_RC=true
- export MAVEN_OPTS="-Xms1024m -Xmx2g -XX:MaxPermSize=512m"
##script: bash build --debug
script:
- mvn clean install
after_success:
- mvn -PqaProfile -Dgroucho-core.test.excludes="**/carvingStateTests/*" verify
## The token credential for Sonar has beed set in the SONAR_TOKEN environmental variable from the Travis-CI UI
- mvn sonar:sonar -Dsonar.projectKey=IASI-SAKS_groucho