forked from gama-platform/gama.old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (40 loc) · 1.22 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
sudo: required
dist: trusty
language: java
jdk:
- oraclejdk8
before_install:
- echo -e "machine github.com\n login $CI_USER_TOKEN" >> ~/.netrc
- echo "MAVEN_OPTS='-Dorg.slf4j.simpleLogger.defaultLogLevel=error -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xmx2048m'" >> ~/.mavenrc
notifications:
email:
recipients:
on_success: change
on_failure: always
cache:
directories:
- "$HOME/.m2"
- "$HOME/.sonarscanner"
addons:
apt:
packages:
- sshpass
- oracle-java8-installer
ssh_known_hosts:
- 51.255.46.42
# https://docs.travis-ci.com/user/sonarcloud/#inspecting-code-with-the-sonarqube-scanner
sonarcloud:
organization: "gama-platform" # the key of the org you chose at step #3
token: $SONAR_TOKEN
script:
- bash ./travis/compile.sh
- bash ./travis/validate_and_test.sh
#- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar -Dsonar.projectKey=gama-platform_gama
after_success:
- echo -e "Host *\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- export SSHPASS=$USER_PWD
- bash ./travis/publish.sh
branches:
only:
- master