forked from sosy-lab/java-common-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (62 loc) · 1.72 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
53
54
55
56
57
58
59
60
61
62
63
# This file is part of SoSy-Lab Common,
# a library of useful utilities:
# https://github.com/sosy-lab/java-common-lib
#
# SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org>
#
# SPDX-License-Identifier: Apache-2.0
language: java
jdk:
- openjdk11
addons:
apt:
packages:
- jq
env:
- NAME='Unit Tests'
before_install: # lets update the very old version of ANT in TravisCI
- wget --no-check-certificate https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.5-bin.tar.bz2
- tar -xvf apache-ant-1.10.5-bin.tar.bz2
- export PATH=`pwd`/apache-ant-1.10.5/bin:$PATH
- echo $(ant -version)
install:
- ant resolve-dependencies
script:
- ant unit-tests-coverage
matrix:
include:
- env: NAME='Build with ECJ'
script:
- ant build-project-ecj
- env: NAME='Create Javadoc' GH_REF='github.com/sosy-lab/common-java.git'
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 -s --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:
jdk: openjdk8
condition: $NAME = "Unit Tests"
notifications:
email:
git:
depth: 1
cache:
directories:
- $HOME/.ivy2