-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 951 Bytes
/
.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
language: java
sudo: false
install: true
matrix:
include:
- os: linux
dist: trusty
jdk: oraclejdk8
env: _JAVA_OPTIONS="-Xmx2048m -Xms512m -Djava.awt.headless=true -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.order=sw -Dprism.text=t2k -Dtestfx.setup.timeout=2500"
addons:
apt:
packages:
- oracle-java8-installer
before_script:
- if [[ "${TRAVIS_OS_NAME}" == linux ]]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; fi
script:
- mvn clean install jacoco:report sonar:sonar site
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.organization=ben12-github
-Dsonar.login=${SONAR_TOKEN}
-Dsonar.branch.name=${TRAVIS_BRANCH}
after_success:
- echo 'infxnity.ben12.eu' > ./target/site/CNAME
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: target/site
on:
branch: master
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'