forked from workcraft/workcraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (37 loc) · 1017 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
35
36
37
38
39
40
41
42
43
language: java
matrix:
include:
- jdk: oraclejdk8
env: TARGET=checkstyle
- jdk: oraclejdk8
env: TARGET=pmd
- jdk: oraclejdk8
env: TARGET=cpd
- jdk: oraclejdk8
env: TARGET=test
- jdk: openjdk8
env: TARGET=test
- jdk: oraclejdk11
env: TARGET=test
- jdk: openjdk11
env: TARGET=test
- os: osx
osx_image: xcode9.2
env: TARGET=test
before_install:
- if [ $TARGET == test ]; then
if [ $TRAVIS_OS_NAME == osx ]; then
brew update; brew upgrade python; brew install clasp;
else
sudo apt-get -qq update; sudo apt-get install -y clasp;
fi
fi
install:
- ./gradlew assemble
before_script:
- if [ $TARGET == test ]; then export DISPLAY=:0; ( Xvfb :0 -ac > /dev/null 2>&1 )& fi
script:
- ./gradlew $TARGET
- if [ $TARGET == test ]; then ./integration-tests/run.sh; fi
after_success:
- if [ $TARGET == test -a $TRAVIS_JDK_VERSION == oraclejdk8 ]; then ./gradlew coveralls; fi