Skip to content

Commit 5fca658

Browse files
Merge pull request #348 from phadej/haskell-ci-regenerate
Haskell ci regenerate
2 parents b941f83 + 5bba840 commit 5fca658

File tree

4 files changed

+36
-36
lines changed

4 files changed

+36
-36
lines changed

.travis.yml

Lines changed: 23 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# For more information, see https://github.com/haskell-CI/haskell-ci
66
#
7-
# version: 0.3.20190804.2
7+
# version: 0.3.20190814
88
#
99
language: c
1010
dist: xenial
@@ -25,12 +25,10 @@ before_cache:
2525
- rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar
2626
- rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar.idx
2727
- rm -rfv $CABALHOME/packages/head.hackage
28-
2928
matrix:
3029
include:
3130
- compiler: ghcjs-8.4
32-
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.4.4","cabal-install-3.0"]}}
33-
env: GHCJS_PACKAGE="ghcjs-8.4"
31+
addons: {"apt":{"sources":["hvr-ghc"],"packages":["cabal-install-3.0"]}}
3432
- compiler: ghc-8.6.5
3533
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.5","cabal-install-2.4"]}}
3634
- compiler: ghc-8.4.4
@@ -39,16 +37,14 @@ matrix:
3937
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.2.2","cabal-install-2.4"]}}
4038
- compiler: ghc-8.0.2
4139
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.0.2","cabal-install-2.4"]}}
42-
4340
before_install:
4441
- |
45-
if [ "$TRAVIS_OS_NAME" = "linux" ] && [ ! -z "$GHCJS_PACKAGE" ]; then
46-
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -;
47-
sudo sh -c "echo deb https://deb.nodesource.com/node_8.x xenial main > /etc/apt/sources.list.d/nodesource.list";
42+
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
4843
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'
4946
sudo apt-get update;
50-
sudo apt-get install nodejs;
51-
sudo apt-get install "$GHCJS_PACKAGE";
47+
sudo apt-get install $CC cabal-install-3.0 nodejs;
5248
fi
5349
- HC=$(echo "/opt/$CC/bin/ghc" | sed 's/-/\//')
5450
- WITHCOMPILER="-w $HC"
@@ -60,8 +56,8 @@ before_install:
6056
else
6157
GHCJS=false;
6258
fi
63-
- if $GHCJS ; then sudo apt-get install -y ghc-8.6.5 ; fi
64-
- if $GHCJS ; then PATH="/opt/ghc/8.6.5/bin:$PATH" ; 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
6561
- HCPKG="$HC-pkg"
6662
- unset CC
6763
- CABAL=/opt/ghc/bin/cabal
@@ -97,6 +93,7 @@ install:
9793
- echo $GHCJS
9894
- TEST=--enable-tests
9995
- BENCH=--enable-benchmarks
96+
- BENCH=--disable-benchmarks
10097
- HEADHACKAGE=false
10198
- rm -f $CABALHOME/config
10299
- |
@@ -116,66 +113,59 @@ install:
116113
echo "repository hackage.haskell.org" >> $CABALHOME/config
117114
echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
118115
- cat $CABALHOME/config
119-
- rm -fv cabal.project cabal.project.local
116+
- rm -fv cabal.project cabal.project.local cabal.project.freeze
120117
- travis_retry ${CABAL} v2-update -v
121-
- if $GHCJS ; then (cd /tmp && ${CABAL} v2-install -w ghc-8.6.5 happy) ; fi
118+
- if $GHCJS ; then (cd /tmp && ${CABAL} v2-install -w ghc-8.4.4 happy) ; fi
122119
# Generate cabal.project
123-
- rm -rf cabal.project cabal.project.local
120+
- rm -rf cabal.project cabal.project.local cabal.project.freeze
124121
- touch cabal.project
125122
- |
126123
echo "packages: ." >> cabal.project
124+
- |
127125
- cat cabal.project || true
128126
- cat cabal.project.local || true
129127
- if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
130-
# - ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH} | color_cabal_output
131-
- ${CABAL} v2-configure $WITHCOMPILER ${TEST} ${BENCH} | color_cabal_output
128+
- ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH} | color_cabal_output
132129
- "cat cabal.project.freeze | sed -E 's/^(constraints: *| *)//' | sed 's/any.//'"
133-
- rm cabal.project.local || true
130+
- rm cabal.project.freeze
134131
script:
135132
- DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
136133
# Packaging...
137134
- ${CABAL} v2-sdist all | color_cabal_output
138135
# Unpacking...
139136
- mv dist-newstyle/sdist/*.tar.gz ${DISTDIR}/
140-
- cp cabal.project.freeze ${DISTDIR}/ || true
141137
- cd ${DISTDIR} || false
142138
- find . -maxdepth 1 -type f -name '*.tar.gz' -exec tar -xvf '{}' \;
143139
- find . -maxdepth 1 -type f -name '*.tar.gz' -exec rm '{}' \;
144140
- PKGDIR_reflex="$(find . -maxdepth 1 -type d -regex '.*/reflex-[0-9.]*')"
145141
# Generate cabal.project
146-
- rm -rf cabal.project cabal.project.local
142+
- rm -rf cabal.project cabal.project.local cabal.project.freeze
147143
- touch cabal.project
148144
- |
149145
echo "packages: ${PKGDIR_reflex}" >> cabal.project
150146
- |
151147
- cat cabal.project || true
152148
- cat cabal.project.local || true
153-
- rm cabal.project.local || true
154-
- cat cabal.project.freeze || true
155149
# Building...
156150
# this builds all libraries and executables (without tests/benchmarks)
157151
- ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all | color_cabal_output
158152
# Building with tests and benchmarks...
159153
# build & run tests, build benchmarks
160154
- ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output
161155
# Testing...
162-
- if ! $GHCJS && [ $HCNUMVER -ge 80000 ] && [ $HCNUMVER -lt 80606 ] ; then ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output ; fi
156+
- if ! $GHCJS ; then ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output ; fi
163157
# cabal check...
164158
- (cd ${PKGDIR_reflex} && ${CABAL} -vnormal check)
165159
# haddock...
166-
- if ! $GHCJS && [ $HCNUMVER -ge 80000 ] && [ $HCNUMVER -lt 80606 ] ; then ${CABAL} v2-haddock $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output ; fi
167-
# Building without installed constraints for packages in global-db...
168-
- rm -f cabal.project.local || true
169-
- ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all | color_cabal_output
160+
- if ! $GHCJS ; then ${CABAL} v2-haddock $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output ; fi
170161
# Constraint sets
171-
- rm -rf cabal.project.local || true
162+
- rm -rf cabal.project.local
172163
# Constraint set no-th
173164
- ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='reflex -use-template-haskell' all | color_cabal_output
174-
# Constraint sets
175-
- rm -rf cabal.project.local || true
176-
# Constraint set don't use split these/semialign
177-
- ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='reflex -split-these' 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
167+
# Constraint set old-witherable
168+
- ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='witherable <0.3.2' all | color_cabal_output
178169

179170
# REGENDATA ["--config=cabal.haskell-ci","cabal.project"]
180171
# EOF
181-

cabal.haskell-ci

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
distribution: xenial
1+
distribution: xenial
2+
benchmarks: False
3+
unconstrained: False
4+
installed: -all
25

36
-- https://github.com/haskell/cabal/issues/6106
47
install-dependencies: False
5-
benchmarks: False
68

79
constraint-set no-th
810
constraints: reflex -use-template-haskell
11+
12+
constraint-set old-these
13+
constraints: these <1
14+
15+
constraint-set old-witherable
16+
constraints: witherable <0.3.2

reflex.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ library
7474
time >= 1.4 && < 1.9,
7575
transformers >= 0.5.6.0 && < 0.6,
7676
unbounded-delays >= 0.1.0.0 && < 0.2,
77-
witherable >= 0.2 && < 0.3
77+
witherable >= 0.2 && < 0.4
7878

7979
if flag(split-these)
8080
build-depends: these >= 1 && <1.1,

src/Data/AppendMap.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ _unAppendMap = getMonoidalMap
4646
pattern AppendMap :: Map k v -> MonoidalMap k v
4747
pattern AppendMap m = MonoidalMap m
4848

49+
#if !MIN_VERSION_witherable(0,3,2)
4950
instance W.Filterable (MonoidalMap k) where
5051
mapMaybe = mapMaybe
52+
#endif
5153

5254
-- | Deletes a key, returning 'Nothing' if the result is empty.
5355
nonEmptyDelete :: Ord k => k -> MonoidalMap k a -> Maybe (MonoidalMap k a)

0 commit comments

Comments
 (0)