-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
98 lines (88 loc) · 4.4 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
language: java
dist: trusty
jdk:
- oraclejdk8
# configure the Maven environment
before_install:
- source <(curl -fsSL https://raw.github.com/daisy/maven-parents/travis/before_install)
# see https://github.com/travis-ci/travis-cookbooks/issues/964
- rm -f /opt/jdk_switcher/jdk_switcher.sh
- sudo apt-get install -y lame espeak
matrix:
include:
- env: SUBDIRS="common scripts-utils"
- env: SUBDIRS="nlp audio tts"
- env: SUBDIRS=braille
- env: SUBDIRS=scripts
- env:
- TEST_WITH_PAXEXAM=true
- SUBDIRS=scripts
install:
- mvn install --projects bom,parent
- for d in $(
for d in $SUBDIRS; do
case $d in
scripts-utils) echo common ;;
nlp) echo common ;;
tts) echo common scripts-utils audio nlp ;;
braille) echo common scripts-utils ;;
scripts) echo common scripts-utils audio nlp tts braille ;;
esac &&
echo $d;
done
| xargs -n1
| awk '!a[$0]++'
); do
mvn install -f $d -DskipTests=true -Dinvoker.skip=true -Dmaven.javadoc.skip=true -B -V
-Dorg.slf4j.simpleLogger.log.com.xmlcalabash.core.XProcRuntime=warn
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
done
# main task, run the verify goal
script:
- if [ "$TEST_WITH_PAXEXAM" == "true" ]; then
for d in $SUBDIRS; do
mvn -f $d -B verify
-Dorg.slf4j.simpleLogger.log.com.xmlcalabash.core.XProcRuntime=warn
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
done
else
for d in $SUBDIRS; do
mvn -f $d -B verify
-Dorg.slf4j.simpleLogger.log.com.xmlcalabash.core.XProcRuntime=warn
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
-Ptest-with-paxexam;
done
fi
# if the build succeeds, deploy the artifact (tests are skipped)
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ] || [[ "$TRAVIS_BRANCH" == super/* ]]
&& [ "$TRAVIS_PULL_REQUEST" == "false" ]
&& [ "$TEST_WITH_PAXEXAM" != "true" ]; then
for d in $SUBDIRS; do
mvn -f $d deploy -B -DskipTests -Dinvoker.skip=true
-Dorg.slf4j.simpleLogger.log.com.xmlcalabash.core.XProcRuntime=warn
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
done;
else
echo "Skipping Maven deploy.";
fi
# if the build fails because of an integration test, print the logs
after_failure:
- find . -type f -path '*/target/it/*/build.log' -execdir bash -c 'if ! cat build.log | grep -qFx "[INFO] BUILD SUCCESS"; then tail -250 build.log; fi' \;
before_cache:
- source <(curl -fsSL https://raw.github.com/daisy/maven-parents/travis/before_cache)
cache:
directories:
- $HOME/.m2/cached-repository
# whitelist
branches:
only:
- master
- develop
- /^super\/.+$/
env:
global:
# CI_DEPLOY_USERNAME
- secure: "di0aFWtFjisVKnba80XltWoQNhMToEcYZRWqoSoyp/+zYaNHDClGO6P+4QFE3SDzVC1hUucCtVrcE+legRU4oo+IIwCue1wvSZGxbyU/Dy/b34cqNSepRoTV3j6NUgTwDfXtDeNcjj2PH/ChP86rutXL5+hLFnfPKrdJvab3tMWFCCVjUsSD4/XrfBCL+2uJSWCp/AFd0hYm0EMlPBLxtTja/nenWzAsdBMWl/R+8P+3sBA/1bcIYmBZAZHUeNBKaTu+oOwdQUbTA8LIqYJF8knINU1d+rDXGMMDcYmff38cKlp6h6cIH2cYNeoYo4Pkjd+PKxUICmodHUIMFBscHG0I9k0ymMJFTo0FriSyO9ZHSRfMVGhMiUXg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