diff options
author | Csaba Hruska <csaba.hruska@gmail.com> | 2018-02-02 17:40:52 +0100 |
---|---|---|
committer | Csaba Hruska <csaba.hruska@gmail.com> | 2018-02-02 17:40:52 +0100 |
commit | d43eb49474de826039594a8c78bcf70fb196ea19 (patch) | |
tree | 80d059ce6b428505fa3aeda4564194566b456ece /run-test-suite.sh | |
parent | 8797304592eb909daef4e4b8e973a509d8d567f9 (diff) |
use stack instead of docker on travis ci
Diffstat (limited to 'run-test-suite.sh')
-rwxr-xr-x | run-test-suite.sh | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/run-test-suite.sh b/run-test-suite.sh index d2173427..996e7d6d 100755 --- a/run-test-suite.sh +++ b/run-test-suite.sh | |||
@@ -4,29 +4,27 @@ UNIT_TEST_PARAMS="--quickcheck-max-size 30 --quickcheck-tests 100" | |||
4 | 4 | ||
5 | if [ "$1" == "--profile" ] ; then | 5 | if [ "$1" == "--profile" ] ; then |
6 | shift | 6 | shift |
7 | cabal install --only-dependencies --enable-library-profiling --enable-executable-profiling | 7 | stack build --profile --flag lambdacube-compiler:testsuite --flag lambdacube-compiler:profiling --flag lambdacube-compiler:-cli |
8 | cabal configure --flags "profiling testsuite -cli" --enable-library-profiling --enable-executable-profiling | ||
9 | set +e | 8 | set +e |
10 | RESULT_UNITTESTS=0 | 9 | RESULT_UNITTESTS=0 |
11 | cabal run lambdacube-compiler-test-suite -- -r -iperformance -i.ignore $@ +RTS -p | 10 | stack exec lambdacube-compiler-test-suite -- -r -iperformance -i.ignore $@ +RTS -p |
12 | RESULT_TESTS=`echo $?` | 11 | RESULT_TESTS=`echo $?` |
13 | elif [ "$1" == "--coverage" ] ; then | 12 | elif [ "$1" == "--coverage" ] ; then |
14 | shift | 13 | shift |
15 | set +e | 14 | set +e |
16 | cabal install --only-dependencies | 15 | stack build --flag lambdacube-compiler:coverage --flag lambdacube-compiler:alltest |
17 | cabal configure --flags "coverage alltest" | 16 | stack exec lambdacube-compiler-unit-tests -- $UNIT_TEST_PARAMS |
18 | cabal run lambdacube-compiler-unit-tests -- $UNIT_TEST_PARAMS | ||
19 | RESULT_UNITTESTS=`echo $?` | 17 | RESULT_UNITTESTS=`echo $?` |
20 | cabal run lambdacube-compiler-coverage-test-suite -- -iperformance -i.ignore -r $@ | 18 | stack exec lambdacube-compiler-coverage-test-suite -- -iperformance -i.ignore -r $@ |
21 | RESULT_TESTS=`echo $?` | 19 | RESULT_TESTS=`echo $?` |
22 | ./create-test-report.sh | 20 | ./create-test-report.sh |
23 | rm lambdacube-compiler-coverage-test-suite.tix | 21 | rm lambdacube-compiler-coverage-test-suite.tix |
24 | else | 22 | else |
25 | set +e | 23 | set +e |
26 | cabal install --only-dependencies -j1 | 24 | stack build --flag lambdacube-compiler:alltest |
27 | cabal run lambdacube-compiler-unit-tests -- $UNIT_TEST_PARAMS | 25 | stack exec lambdacube-compiler-unit-tests -- $UNIT_TEST_PARAMS |
28 | RESULT_UNITTESTS=`echo $?` | 26 | RESULT_UNITTESTS=`echo $?` |
29 | cabal run lambdacube-compiler-test-suite -- -iperformance -i.ignore -r $@ | 27 | stack exec lambdacube-compiler-test-suite -- -iperformance -i.ignore -r $@ |
30 | RESULT_TESTS=`echo $?` | 28 | RESULT_TESTS=`echo $?` |
31 | fi | 29 | fi |
32 | 30 | ||