forked from openpreserve/jhove
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (40 loc) · 1.47 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
dist: trusty
sudo: required
language: java
jdk:
- openjdk8
- oraclejdk8
branches:
except:
- "/^v|d\\d+\\.\\d+\\.\\d+$/"
- "/^jenkins-jhove-v|d\\d+\\.\\d+\\.\\d+$/"
notifications:
slack:
secure: qAKVtBCrucCt8GB1SVjjCckwWqC6zAvXN7UdT+aFLH2u7vILT4jzLibTRAaTqqcBBnxFYE87qii4uaIbIltMRZYBQUyiz/mTabkQq5RHJKzzZq54qcKjrI7BSCJHoJErBYrNO4yECUgR6wkhF2/e0+OxEtuSxFovTGXN9ycMT0c=
env:
global:
secure: P3baCsYCRF45nZExdjc3QzAt8PKqK9i+0M04N87I7UJgv8ibqPb2kVah/YXcRdAUxAN3vE095LALf4NszXKa3fx/QnsoyfQqnVpwmVbNM0cCScT3Du304j2XnwoSghvNT8bDlvT+qmhLr9N8xE3E6sodChMpYLNPqfJWSG1nOJY=
coverage:
notify:
slack:
default:
url: "https://hooks.slack.com/services/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"
threshold: 1%
only_pulls: false
branches: null
flags: null
paths: null
before_install:
- sudo apt-get install -y realpath
- sudo apt-get install jq
- wget -O ~/codacy-coverage-reporter-assembly-latest.jar http://resources.openpreservation.org/codacy-coverage-reporter-assembly-latest.jar
script:
- mvn clean install -DjacocoAgg
- "./bbt-jhove"
- mvn verify -DjacocoAgg
after_success:
- bash <(curl -s https://codecov.io/bash)
- java -cp ~/codacy-coverage-reporter-assembly-latest.jar com.codacy.CodacyCoverageReporter report -l Java -r jhove-apps/target/site/jacoco-aggregate/jacoco.xml
after_failure:
- cat /tmp/bbt-logs/log.txt | grep --group-separator"===== Unexpected output ====="
-n -B 1 -A 2 Expected