forked from BITPlan/can4eve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (45 loc) · 1.24 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
# this is a java project using maven
# it also compiles an android result with gradle
# see https://github.com/travis-ci/travis-ci/issues/2551
language: android
#language: java
#
# Java 8
#
# to avoid Unsupported major.minor version 52.0 we need to specify the JDK to be used
# https://stackoverflow.com/a/40208648/1497139
jdk: oraclejdk8
# support for headless Swing tests and other gui stuff
# https://docs.travis-ci.com/user/gui-and-headless-browsers/
# workaround 2017-08-06
dist: precise
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
# proposed xvfb fix
#before_install: sudo apt-get install xvfb firefox
# switch off gpg handling
install: mvn install -DskipTests=true -Dgpg.skip=true
script: mvn dependency:tree test
# Android
# https://docs.travis-ci.com/user/languages/android/
android:
components:
- tools
- build-tools-25.0.3
- android-25
# Caching
# see https://stackoverflow.com/questions/40295515/caching-android-sdk-in-travis-ci
cache:
directories:
- $HOME/.gradle/wrapper
- $HOME/.gradle/daemon
- $HOME/.gradle/caches/jars-3
- $HOME/.gradle/caches/3.5
# Java FX support
sudo: false
addons:
apt:
packages:
- oracle-java8-installer