@@ -12,27 +12,38 @@ cache:
1212
1313jobs:
1414 include:
15− - ghc: 8.6.5
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"
15+
16+ # Cabal
2117 - ghc: 8.4.4
22− env: SNAPSHOT="lts-12.26"
18+ - ghc: 8.6.5
19+
20+ # Stack
21+ - ghc: 8.6.5
22+ env: STACK_YAML="$TRAVIS_BUILD_DIR/stack.yaml"
2323
2424install:
2525 - |
26− # install stack
27− curl -sSL https://get.haskellstack.org/ | sh
26+ if [ -z "$STACK_YAML" ]; then
27+ ghc --version
28+ cabal --version
29+ cabal new-update
30+ cabal new-build --enable-tests --enable-benchmarks
31+ else
32+ # install stack
33+ curl -sSL https://get.haskellstack.org/ | sh
2834
29− # build project with stack
30− stack --version
31− stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --resolver=$SNAPSHOT
35+ # build project with stack
36+ stack --version
37+ stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
38+ fi
3239
3340script:
3441 - |
35− stack test --system-ghc
42+ if [ -z "$STACK_YAML" ]; then
43+ cabal new-test --enable-tests
44+ else
45+ stack test --system-ghc
46+ fi
3647
3748notifications:
3849 email: false