Skip to content

Commit 6307f65

Browse files
committed
.travis.yml: fail build when one of commands fails.
Correction for 4b94639 commit.
1 parent d95575d commit 6307f65

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ language: java
22
before_script:
33
- npm install -g bootlint
44
script:
5-
- mvn --batch-mode checkstyle:check -Dcheckstyle.violationSeverity=warning | egrep -v '^\[INFO\] Download(ing|ed):' | tee cs.log; fgrep -qs '[ERROR]' cs.log && false || true
6-
- mvn --batch-mode pmd:check | egrep -v '^\[INFO\] Download(ing|ed):' | tee pmd.log; fgrep -qs '[ERROR]' pmd.log && false || true
7-
- mvn --batch-mode license:check | egrep -v '^\[INFO\] Download(ing|ed):' | tee licence.log; fgrep -qs '[ERROR]' licence.log && false || true
5+
- mvn --batch-mode checkstyle:check -Dcheckstyle.violationSeverity=warning | egrep -v '^\[INFO\] Download(ing|ed):' | tee cs.log; ! fgrep -qs '[ERROR]' cs.log
6+
- mvn --batch-mode pmd:check | egrep -v '^\[INFO\] Download(ing|ed):' | tee pmd.log; ! fgrep -qs '[ERROR]' pmd.log
7+
- mvn --batch-mode license:check | egrep -v '^\[INFO\] Download(ing|ed):' | tee licence.log; ! fgrep -qs '[ERROR]' licence.log
88
- find src -type f -name '*.html' | xargs bootlint
9-
- mvn --batch-mode verify | egrep -v '^\[INFO\] Download(ing|ed):' | tee verify.log; fgrep -qs '[ERROR]' verify.log && false || true
10-
- mvn --batch-mode jasmine:test | egrep -v '^\[INFO\] Download(ing|ed):' | tee jasmine.log; fgrep -qs '[ERROR]' jasmine.log && false || true
9+
- mvn --batch-mode verify | egrep -v '^\[INFO\] Download(ing|ed):' | tee verify.log; ! fgrep -qs '[ERROR]' verify.log
10+
- mvn --batch-mode jasmine:test | egrep -v '^\[INFO\] Download(ing|ed):' | tee jasmine.log; ! fgrep -qs '[ERROR]' jasmine.log
1111
after_success:
12-
- mvn --batch-mode jacoco:prepare-agent test jacoco:report coveralls:jacoco | egrep -v '^\[INFO\] Download(ing|ed):' | tee jacoco.log; fgrep -qs '[ERROR]' jacoco.log && false || true
12+
- mvn --batch-mode jacoco:prepare-agent test jacoco:report coveralls:jacoco | egrep -v '^\[INFO\] Download(ing|ed):' | tee jacoco.log; ! fgrep -qs '[ERROR]' jacoco.log
1313

1414
jdk:
1515
- oraclejdk8

0 commit comments

Comments
 (0)