forked from sosy-lab/java-common-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
42 lines (41 loc) · 1.13 KB
/
.travis.yml
File metadata and controls
42 lines (41 loc) · 1.13 KB
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
# 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
dist: focal
jdk:
- openjdk11
install:
- ant resolve-dependencies
matrix:
include:
- env: NAME='Build with ECJ'
script:
- ant build-project-ecj
- env: NAME='Unit Tests'
script:
- ant unit-tests
- 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
notifications:
email:
- common-java-dev@googlegroups.com
git:
depth: 1
cache:
directories:
- $HOME/.ivy2