@@ -4,48 +4,35 @@ language: haskell
44git:
55 depth: 5
66
7−cabal: "2.4"
8−
97cache:
108 directories:
119 - "$HOME/.cabal/store"
1210 - "$HOME/.stack"
1311 - "$TRAVIS_BUILD_DIR/.stack-work"
1412
15−matrix:
13+jobs:
1614 include:
17−
18− # Cabal
19− - ghc: 8.4.4
2015 - ghc: 8.6.5
21−
22− # Stack
23− - ghc: 8.6.5
24− env: STACK_YAML="$TRAVIS_BUILD_DIR/stack.yaml"
16+ env: SNAPSHOT="lts-14.22"
17+ - ghc: 8.6.4
18+ env: SNAPSHOT="lts-13.19"
19+ - ghc: 8.6.3
20+ env: SNAPSHOT="lts-13.11"
21+ - ghc: 8.4.4
22+ env: SNAPSHOT="lts-12.26"
2523
2624install:
2725 - |
28− if [ -z "$STACK_YAML" ]; then
29− ghc --version
30− cabal --version
31− cabal new-update
32− cabal new-build --enable-tests --enable-benchmarks
33− else
34− # install stack
35− curl -sSL https://get.haskellstack.org/ | sh
26+ # install stack
27+ curl -sSL https://get.haskellstack.org/ | sh
3628
37− # build project with stack
38− stack --version
39− stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
40− fi
29+ # build project with stack
30+ stack --version
31+ stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --resolver=$SNAPSHOT
4132
4233script:
4334 - |
44− if [ -z "$STACK_YAML" ]; then
45− cabal new-test --enable-tests
46− else
47− stack test --system-ghc
48− fi
35+ stack test --system-ghc
4936
5037notifications:
5138 email: false