4
4
#
5
5
# For more information, see https://github.com/haskell-CI/haskell-ci
6
6
#
7
- # version: 0.5.20180907
7
+ # version: 0.5.20190908
8
8
#
9
9
language : c
10
10
dist : xenial
14
14
branches :
15
15
only :
16
16
- master
17
+ addons :
18
+ google : stable
17
19
cache :
18
20
directories :
19
21
- $HOME/.cabal/packages
@@ -115,19 +117,22 @@ install:
115
117
echo " prefix: $CABALHOME" >> $CABALHOME/config
116
118
echo "repository hackage.haskell.org" >> $CABALHOME/config
117
119
echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
120
+ - GHCJOBS=-j2
118
121
- |
119
- echo "program-default-options" >> $CABALHOME/config
120
- echo " ghc-options: -j2" >> $CABALHOME/config
122
+ echo "program-default-options" >> $CABALHOME/config
123
+ echo " ghc-options: $GHCJOBS +RTS -M6G -RTS" >> $CABALHOME/config
121
124
- cat $CABALHOME/config
122
125
- rm -fv cabal.project cabal.project.local cabal.project.freeze
123
126
- travis_retry ${CABAL} v2-update -v
127
+ - if $GHCJS ; then (cd /tmp && ${CABAL} v2-install -w ghc-8.4.4 cabal-plan | color_cabal_output) ; fi
124
128
- if $GHCJS ; then (cd /tmp && ${CABAL} v2-install -w ghc-8.4.4 hspec-discover | color_cabal_output) ; fi
125
129
# Generate cabal.project
126
130
- rm -rf cabal.project cabal.project.local cabal.project.freeze
127
131
- touch cabal.project
128
132
- |
129
133
echo "packages: servant" >> cabal.project
130
134
if ! $GHCJS ; then echo "packages: servant-client" >> cabal.project ; fi
135
+ echo "packages: servant-jsaddle" >> cabal.project
131
136
echo "packages: servant-client-core" >> cabal.project
132
137
if ! $GHCJS ; then echo "packages: servant-http-streams" >> cabal.project ; fi
133
138
if ! $GHCJS ; then echo "packages: servant-docs" >> cabal.project ; fi
@@ -165,11 +170,12 @@ install:
165
170
echo "allow-newer: io-streams-1.5.1.0:network" >> cabal.project
166
171
echo "allow-newer: openssl-streams-1.2.2.0:network" >> cabal.project
167
172
echo "optimization: False" >> cabal.project
168
- - " for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(cookbook-basic-auth|cookbook-basic-streaming|cookbook-curl-mock|cookbook-db-postgres-pool|cookbook-db-sqlite-simple|cookbook-file-upload|cookbook-generic|cookbook-https|cookbook-pagination|cookbook-structuring-apis|cookbook-testing|cookbook-using-custom-monad|cookbook-using-free-client|servant|servant-client|servant-client-core|servant-conduit|servant-docs|servant-foreign|servant-http-streams|servant-machines|servant-pipes|servant-server|tutorial)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
173
+ - " for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(cookbook-basic-auth|cookbook-basic-streaming|cookbook-curl-mock|cookbook-db-postgres-pool|cookbook-db-sqlite-simple|cookbook-file-upload|cookbook-generic|cookbook-https|cookbook-pagination|cookbook-structuring-apis|cookbook-testing|cookbook-using-custom-monad|cookbook-using-free-client|servant|servant-client|servant-client-core|servant-conduit|servant-docs|servant-foreign|servant-http-streams|servant-jsaddle|servant- machines|servant-pipes|servant-server|tutorial)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
169
174
- cat cabal.project || true
170
175
- cat cabal.project.local || true
171
176
- if [ -f "servant/configure.ac" ]; then (cd "servant" && autoreconf -i); fi
172
177
- if [ -f "servant-client/configure.ac" ]; then (cd "servant-client" && autoreconf -i); fi
178
+ - if [ -f "servant-jsaddle/configure.ac" ]; then (cd "servant-jsaddle" && autoreconf -i); fi
173
179
- if [ -f "servant-client-core/configure.ac" ]; then (cd "servant-client-core" && autoreconf -i); fi
174
180
- if [ -f "servant-http-streams/configure.ac" ]; then (cd "servant-http-streams" && autoreconf -i); fi
175
181
- if [ -f "servant-docs/configure.ac" ]; then (cd "servant-docs" && autoreconf -i); fi
@@ -209,6 +215,7 @@ script:
209
215
- find . -maxdepth 1 -type f -name '*.tar.gz' -exec rm '{}' \;
210
216
- PKGDIR_servant="$(find . -maxdepth 1 -type d -regex '.*/servant-[0-9.]*')"
211
217
- PKGDIR_servant_client="$(find . -maxdepth 1 -type d -regex '.*/servant-client-[0-9.]*')"
218
+ - PKGDIR_servant_jsaddle="$(find . -maxdepth 1 -type d -regex '.*/servant-jsaddle-[0-9.]*')"
212
219
- PKGDIR_servant_client_core="$(find . -maxdepth 1 -type d -regex '.*/servant-client-core-[0-9.]*')"
213
220
- PKGDIR_servant_http_streams="$(find . -maxdepth 1 -type d -regex '.*/servant-http-streams-[0-9.]*')"
214
221
- PKGDIR_servant_docs="$(find . -maxdepth 1 -type d -regex '.*/servant-docs-[0-9.]*')"
@@ -237,6 +244,7 @@ script:
237
244
- |
238
245
echo "packages: ${PKGDIR_servant}" >> cabal.project
239
246
if ! $GHCJS ; then echo "packages: ${PKGDIR_servant_client}" >> cabal.project ; fi
247
+ echo "packages: ${PKGDIR_servant_jsaddle}" >> cabal.project
240
248
echo "packages: ${PKGDIR_servant_client_core}" >> cabal.project
241
249
if ! $GHCJS ; then echo "packages: ${PKGDIR_servant_http_streams}" >> cabal.project ; fi
242
250
if ! $GHCJS ; then echo "packages: ${PKGDIR_servant_docs}" >> cabal.project ; fi
@@ -274,7 +282,7 @@ script:
274
282
echo "allow-newer: io-streams-1.5.1.0:network" >> cabal.project
275
283
echo "allow-newer: openssl-streams-1.2.2.0:network" >> cabal.project
276
284
echo "optimization: False" >> cabal.project
277
- - " for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(cookbook-basic-auth|cookbook-basic-streaming|cookbook-curl-mock|cookbook-db-postgres-pool|cookbook-db-sqlite-simple|cookbook-file-upload|cookbook-generic|cookbook-https|cookbook-pagination|cookbook-structuring-apis|cookbook-testing|cookbook-using-custom-monad|cookbook-using-free-client|servant|servant-client|servant-client-core|servant-conduit|servant-docs|servant-foreign|servant-http-streams|servant-machines|servant-pipes|servant-server|tutorial)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
285
+ - " for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(cookbook-basic-auth|cookbook-basic-streaming|cookbook-curl-mock|cookbook-db-postgres-pool|cookbook-db-sqlite-simple|cookbook-file-upload|cookbook-generic|cookbook-https|cookbook-pagination|cookbook-structuring-apis|cookbook-testing|cookbook-using-custom-monad|cookbook-using-free-client|servant|servant-client|servant-client-core|servant-conduit|servant-docs|servant-foreign|servant-http-streams|servant-jsaddle|servant- machines|servant-pipes|servant-server|tutorial)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
278
286
- cat cabal.project || true
279
287
- cat cabal.project.local || true
280
288
- echo -en 'travis_fold:end:unpack\\r'
@@ -285,6 +293,7 @@ script:
285
293
- echo -en 'travis_fold:end:build-everything\\r'
286
294
# Testing...
287
295
- if ! $GHCJS ; then ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output ; fi
296
+ - if $GHCJS ; then for testexe in $(cabal-plan list-bins '*:test:*' | awk '{ print $2 }'); do echo $testexe; nodejs ${testexe}.jsexe/all.js; done ; fi
288
297
# haddock...
289
298
- echo 'haddock...' && echo -en 'travis_fold:start:haddock\\r'
290
299
- if ! $GHCJS ; then ${CABAL} v2-haddock $WITHCOMPILER --with-haddock $HADDOCK ${TEST} ${BENCH} all | color_cabal_output ; fi
0 commit comments