@@ -118,41 +118,42 @@ install:
118
118
echo "repository hackage.haskell.org" >> $CABALHOME/config
119
119
echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
120
120
- cat $CABALHOME/config
121
- - rm -fv cabal.project cabal.project.local cabal.project.freeze
121
+ - rm -fv cabal.project cabal.project.local
122
122
- travis_retry ${CABAL} v2-update -v
123
123
- if $GHCJS ; then (cd /tmp && ${CABAL} v2-install -w ghc-8.6.5 happy) ; fi
124
124
# Generate cabal.project
125
- - rm -rf cabal.project cabal.project.local cabal.project.freeze
125
+ - rm -rf cabal.project cabal.project.local
126
126
- touch cabal.project
127
127
- |
128
128
echo "packages: ." >> cabal.project
129
129
- cat cabal.project || true
130
130
- cat cabal.project.local || true
131
131
- if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
132
- - ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH} | color_cabal_output
132
+ # - ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH} | color_cabal_output
133
133
- ${CABAL} v2-configure $WITHCOMPILER ${TEST} ${BENCH} | color_cabal_output
134
134
- " cat cabal.project.freeze | sed -E 's/^(constraints: *| *)//' | sed 's/any.//'"
135
- - rm cabal.project.freeze || true
136
135
- rm cabal.project.local || true
137
136
script :
138
137
- DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
139
138
# Packaging...
140
139
- ${CABAL} v2-sdist all | color_cabal_output
141
140
# Unpacking...
142
141
- mv dist-newstyle/sdist/*.tar.gz ${DISTDIR}/
142
+ - cp cabal.project.freeze ${DISTDIR}/ || true
143
143
- cd ${DISTDIR} || false
144
144
- find . -maxdepth 1 -type f -name '*.tar.gz' -exec tar -xvf '{}' \;
145
145
- find . -maxdepth 1 -type f -name '*.tar.gz' -exec rm '{}' \;
146
146
- PKGDIR_reflex="$(find . -maxdepth 1 -type d -regex '.*/reflex-[0-9.]*')"
147
147
# Generate cabal.project
148
- - rm -rf cabal.project cabal.project.local cabal.project.freeze
148
+ - rm -rf cabal.project cabal.project.local
149
149
- touch cabal.project
150
150
- |
151
151
echo "packages: ${PKGDIR_reflex}" >> cabal.project
152
152
- |
153
153
- cat cabal.project || true
154
154
- cat cabal.project.local || true
155
155
- rm cabal.project.local || true
156
+ - cat cabal.project.freeze || true
156
157
# Building...
157
158
# this builds all libraries and executables (without tests/benchmarks)
158
159
- ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all | color_cabal_output
0 commit comments