on develop help sign in
Add debug to travis
29beba8Oliver Batchelor
.travis.yml+24−26
@@ -1,14 +1,13 @@
1# This Travis job script has been generated by a script via
1# This Travis job script has been generated by a script via
2#
2#
3−# haskell-ci '--config=cabal.haskell-ci' 'cabal.project'
3+# haskell-ci 'reflex.cabal'
4#
4#
5# For more information, see https://github.com/haskell-CI/haskell-ci
5# For more information, see https://github.com/haskell-CI/haskell-ci
6#
6#
7−# version: 0.3.20190814
7+# version: 0.3.20190815
8#
8#
9language: c
9language: c
10dist: xenial
10dist: xenial
11−sudo: required
12git:
11git:
13 # whether to recursively clone submodules
12 # whether to recursively clone submodules
14 submodules: false
13 submodules: false
@@ -38,24 +37,25 @@ matrix:
38 - compiler: ghc-8.0.2
37 - compiler: ghc-8.0.2
39 addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.0.2","cabal-install-2.4"]}}
38 addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.0.2","cabal-install-2.4"]}}
40before_install:
39before_install:
41− - |
42− if [ "$TRAVIS_OS_NAME" = "linux" ]; then
43− sudo add-apt-repository -y ppa:hvr/ghcjs;
44− curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
45− sudo apt-add-repository 'https://deb.nodesource.com/node_8.x xenial main'
46− sudo apt-get update;
47− sudo apt-get install $CC cabal-install-3.0 nodejs;
48− fi
49− - HC=$(echo "/opt/$CC/bin/ghc" | sed 's/-/\//')
50− - WITHCOMPILER="-w $HC"
51 - |
40 - |
52 if echo $CC | grep -q ghcjs; then
41 if echo $CC | grep -q ghcjs; then
53− GHCJS=true
42+ GHCJS=true;
54− HC=${HC}js
55− WITHCOMPILER="--ghcjs ${WITHCOMPILER}js"
56 else
43 else
57 GHCJS=false;
44 GHCJS=false;
58 fi
45 fi
46+ - |
47+ if [ "$TRAVIS_OS_NAME" = "linux" ]; then
48+ if $GHCJS ; then sudo add-apt-repository -y ppa:hvr/ghcjs ; fi;
49+ if $GHCJS ; then curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - ; fi;
50+ if $GHCJS ; then sudo apt-add-repository 'https://deb.nodesource.com/node_8.x xenial main' ; fi;
51+ if $GHCJS ; then sudo apt-get update ; fi;
52+ sudo apt-get install $CC;
53+ if $GHCJS ; then sudo apt-get install -y nodejs cabal-install-3.0 ; fi;
54+ fi
55+ - HC=$(echo "/opt/$CC/bin/ghc" | sed 's/-/\//')
56+ - WITHCOMPILER="-w $HC"
57+ - if $GHCJS ; then HC=${HC}js ; fi
58+ - if $GHCJS ; then WITHCOMPILER="--ghcjs ${WITHCOMPILER}js" ; fi
59 - if $GHCJS ; then sudo apt-get install -y ghc-8.4.4 ; fi
59 - if $GHCJS ; then sudo apt-get install -y ghc-8.4.4 ; fi
60 - if $GHCJS ; then PATH="/opt/ghc/8.4.4/bin:$PATH" ; fi
60 - if $GHCJS ; then PATH="/opt/ghc/8.4.4/bin:$PATH" ; fi
61 - HCPKG="$HC-pkg"
61 - HCPKG="$HC-pkg"
@@ -93,7 +93,6 @@ install:
93 - echo $GHCJS
93 - echo $GHCJS
94 - TEST=--enable-tests
94 - TEST=--enable-tests
95 - BENCH=--enable-benchmarks
95 - BENCH=--enable-benchmarks
96− - BENCH=--disable-benchmarks
97 - HEADHACKAGE=false
96 - HEADHACKAGE=false
98 - rm -f $CABALHOME/config
97 - rm -f $CABALHOME/config
99 - |
98 - |
@@ -122,12 +121,15 @@ install:
122 - |
121 - |
123 echo "packages: ." >> cabal.project
122 echo "packages: ." >> cabal.project
124 - |
123 - |
124+ - "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(reflex)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
125 - cat cabal.project || true
125 - cat cabal.project || true
126 - cat cabal.project.local || true
126 - cat cabal.project.local || true
127 - if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
127 - if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
128 - ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH} | color_cabal_output
128 - ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH} | color_cabal_output
129 - "cat cabal.project.freeze | sed -E 's/^(constraints: *| *)//' | sed 's/any.//'"
129 - "cat cabal.project.freeze | sed -E 's/^(constraints: *| *)//' | sed 's/any.//'"
130 - rm cabal.project.freeze
130 - rm cabal.project.freeze
131+ - ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} --dep -j2 all | color_cabal_output
132+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --dep -j2 all | color_cabal_output
131script:
133script:
132 - DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
134 - DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
133 # Packaging...
135 # Packaging...
@@ -144,6 +146,7 @@ script:
144 - |
146 - |
145 echo "packages: ${PKGDIR_reflex}" >> cabal.project
147 echo "packages: ${PKGDIR_reflex}" >> cabal.project
146 - |
148 - |
149+ - "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(reflex)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
147 - cat cabal.project || true
150 - cat cabal.project || true
148 - cat cabal.project.local || true
151 - cat cabal.project.local || true
149 # Building...
152 # Building...
@@ -158,14 +161,9 @@ script:
158 - (cd ${PKGDIR_reflex} && ${CABAL} -vnormal check)
161 - (cd ${PKGDIR_reflex} && ${CABAL} -vnormal check)
159 # haddock...
162 # haddock...
160 - if ! $GHCJS ; then ${CABAL} v2-haddock $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output ; fi
163 - if ! $GHCJS ; then ${CABAL} v2-haddock $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output ; fi
161− # Constraint sets
164+ # Building without installed constraints for packages in global-db...
162− - rm -rf cabal.project.local
165+ - rm -f cabal.project.local
163− # Constraint set no-th
164− - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='reflex -use-template-haskell' all | color_cabal_output
165− # Constraint set old-these
166− - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='these <1' all | color_cabal_output
166+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all | color_cabal_output
167− # Constraint set old-witherable
168− - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='witherable <0.3.2' all | color_cabal_output
169
167
170−# REGENDATA ["--config=cabal.haskell-ci","cabal.project"]
168+# REGENDATA ["reflex.cabal"]
171# EOF
169# EOF
cabal.haskell-ci+3
@@ -14,3 +14,6 @@ constraint-set old-these
14
14
15constraint-set old-witherable
15constraint-set old-witherable
16 constraints: witherable <0.3.2
16 constraints: witherable <0.3.2
17+
18+constraint-set debug
19+ constraints: +debug