File tree 1 file changed +16
-4
lines changed
1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 15
15
language : java
16
16
jdk :
17
17
- oraclejdk8
18
- env :
19
- - GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR/service-account.json GCLOUD_PROJECT=cloud-samples-tests
20
18
before_install :
21
19
- openssl aes-256-cbc -K $encrypted_37a4f399de75_key -iv $encrypted_37a4f399de75_iv -in service-account.json.enc -out service-account.json -d
22
-
23
- script : mvn --batch-mode clean verify -DskipTests=false | egrep -v "(^\[INFO\] Download|^\[INFO\].*skipping)"
20
+ && export GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR/service-account.json GCLOUD_PROJECT=cloud-samples-tests
21
+ || true
22
+ # Skip the install step, since Maven will download the dependencies we need
23
+ # when the test build runs.
24
+ # http://stackoverflow.com/q/31945809/101923
25
+ # https://docs.travis-ci.com/user/customizing-the-build/#Skipping-the-Installation-Step
26
+ install : true
27
+ script :
28
+ - (
29
+ set -o pipefail
30
+ SKIP_TESTS=false
31
+ if [ -z "$GOOGLE_APPLICATION_CREDENTIALS"]; then
32
+ SKIP_TESTS=true
33
+ fi
34
+ mvn --batch-mode clean verify -DskipTests=$SKIP_TESTS | egrep -v "(^\[INFO\] Download|^\[INFO\].*skipping)"
35
+ )
24
36
after_success :
25
37
- mvn clean cobertura:cobertura coveralls:report
26
38
branches :
You can’t perform that action at this time.
0 commit comments