1
1
# This Travis job script has been generated by a script via
2
2
#
3
- # make_travis_yml_2.hs 'zlib.cabal' 'zlib1g-dev'
3
+ # make_travis_yml_2.hs '--irc-channel=irc.freenode.org#hackage' ' zlib.cabal' 'zlib1g-dev'
4
4
#
5
5
# For more information, see https://github.com/hvr/multi-ghc-travis
6
6
#
@@ -10,6 +10,14 @@ sudo: false
10
10
git :
11
11
submodules : false # whether to recursively clone submodules
12
12
13
+ notifications :
14
+ irc :
15
+ channels :
16
+ - " irc.freenode.org#hackage"
17
+ skip_join : true
18
+ template :
19
+ - " \x03 13zlib\x03 /\x03 06%{branch}\x03 \x03 14%{commit}\x03 %{build_url} %{message}"
20
+
13
21
cache :
14
22
directories :
15
23
- $HOME/.cabal/packages
@@ -73,8 +81,8 @@ install:
73
81
- rm -fv cabal.project.local
74
82
- " echo 'packages: .' > cabal.project"
75
83
- rm -f cabal.project.freeze
76
- - cabal new-build -w ${HC} ${TEST} ${BENCH} --dep -j2
77
- - cabal new-build -w ${HC} --disable-tests --disable-benchmarks --dep -j2
84
+ - cabal new-build -w ${HC} ${TEST} ${BENCH} --dep -j2 all
85
+ - cabal new-build -w ${HC} --disable-tests --disable-benchmarks --dep -j2 all
78
86
79
87
# Here starts the actual work to be performed for the package under test;
80
88
# any command which exits with a non-zero exit code causes the build to fail.
@@ -92,17 +100,12 @@ script:
92
100
- " echo 'packages: .' > cabal.project"
93
101
# this builds all libraries and executables (without tests/benchmarks)
94
102
- rm -f cabal.project.freeze
95
- - cabal new-build -w ${HC} --disable-tests --disable-benchmarks
103
+ - cabal new-build -w ${HC} --disable-tests --disable-benchmarks all
96
104
# this builds all libraries and executables (including tests/benchmarks)
97
105
# - rm -rf ./dist-newstyle
98
- - cabal new-build -w ${HC} ${TEST} ${BENCH}
99
106
100
- # there's no 'cabal new-test' yet, so let's emulate for now
101
- - TESTS=( $(awk 'tolower($0) ~ /^test-suite / { print $2 }' *.cabal) )
102
- - if [ "$TEST" != "--enable-tests" ]; then TESTS=(); fi
103
- - shopt -s globstar;
104
- RC=true; for T in ${TESTS[@]}; do echo "== $T ==";
105
- if dist-newstyle/build/**/$SRC_BASENAME/**/build/$T/$T; then echo "= $T OK =";
106
- else echo "= $T FAILED ="; RC=false; fi; done; $RC
107
+ # build & run tests
108
+ - cabal new-build -w ${HC} ${TEST} ${BENCH} all
109
+ - if [ "x$TEST" = "x--enable-tests" ]; then cabal new-test -w ${HC} all; fi
107
110
108
111
# EOF
0 commit comments