forked from sosy-lab/java-smt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (52 loc) · 1.23 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
52
language: java
jdk:
- oraclejdk8
addons:
apt:
packages:
- oracle-java8-installer
- jq
env:
global:
- GH_REF: github.com/sosy-lab/java-smt.git
install:
- ant resolve-dependencies
matrix:
include:
- env: NAME='Build with ECJ'
script:
- ant build-project-ecj
- env: NAME='Unit Tests'
script:
- ant unit-tests-coverage
- env: NAME='Create Javadoc'
script:
- ant javadoc collect-options
- env: NAME=Checkstyle
script:
- ant run-checkstyle -Dcheckstyle.output=plain && cat Checkstyle*.xml && [ $(cat Checkstyle*.xml | grep -vic audit) -eq 0 ]
- env: NAME=SpotBugs
script:
- ant run-spotbugs -Dspotbugs.output=text && cat SpotBugs.xml && test \! -s SpotBugs.xml
- env: NAME='Check source-code format'
script:
- ant format-source && git diff --exit-code
deploy:
- skip_cleanup: true
provider: script
script: build/deploy-gh-pages.sh
on:
condition: $NAME = "Create Javadoc"
- skip_cleanup: true
provider: script
script: build/deploy-coverage.sh
on:
condition: $NAME = "Unit Tests"
notifications:
email:
git:
depth: 1
cache:
directories:
- $HOME/.ivy2