We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e8ec14 commit 63b3eefCopy full SHA for 63b3eef
.travis.yml
@@ -22,7 +22,7 @@ env:
22
# Using configure and make, run the tests.
23
- >
24
BUILD_SCRIPT="FC='gfortran -fno-backtrace' ./configure &&
25
- make -j 2 && make -j 2 check"
+ make -j 2 && make -j 2 check && ./testcheck.sh"
26
27
# Using cmake - just build, tests not working yet.
28
testcheck.sh
@@ -0,0 +1,14 @@
1
+#!/bin/sh -e
2
+
3
+# Script to parse the output generated by make checkr.,
4
+# Exits with non-zero return code if any tests failed.
5
+# This can be used inside of a CI environment.
6
7
+for numerr in `grep RESULT check.out | grep Failed: | cut -d " " -f 4`
8
+ do
9
+ if [ "$numerr" -ne "0" ]
10
+ then
11
+ echo "At least one test failed. Examine check.out for details"
12
+ exit 1
13
+ fi
14
+done
0 commit comments