Skip to content

Commit 35e1d46

Browse files
committed
Build with various servant constraints
1 parent e77fef1 commit 35e1d46

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ script:
7272
# this builds all libraries and executables (without tests/benchmarks)
7373
- rm -f cabal.project.freeze
7474
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks
75+
76+
# Build with various constraints
77+
- if [ $HC = "ghc-8.0.2" ]; then UNLESSGHC802=true; fi
78+
- $UNLESSGHC802 cabal new-build -w ${HC} --disable-tests --disable-benchmarks "--constraint=servant==0.5.*"
79+
- $UNLESSGHC802 cabal new-build -w ${HC} --disable-tests --disable-benchmarks "--constraint=servant==0.6.*"
80+
- $UNLESSGHC802 cabal new-build -w ${HC} --disable-tests --disable-benchmarks "--constraint=servant==0.7.*"
81+
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks "--constraint=servant==0.8.*"
82+
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks "--constraint=servant==0.9.*"
83+
7584
# this builds all libraries and executables (including tests/benchmarks)
7685
# - rm -rf ./dist-newstyle
7786
- cabal new-build -w ${HC} ${TEST} ${BENCH}

0 commit comments

Comments
 (0)