Skip to content

Commit 497e182

Browse files
authored
Build only with stack on Travis CI (#89)
* Build only with stack on Travis CI * Specify GHC version on CI env
1 parent 5a45366 commit 497e182

File tree

1 file changed

+10
-28
lines changed

1 file changed

+10
-28
lines changed

.travis.yml

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,28 @@
11
sudo: true
2-
language: haskell
2+
language: generic
33

44
git:
55
depth: 5
66

7-
cabal: "3.0"
8-
97
cache:
108
directories:
11-
- "$HOME/.cabal/store"
129
- "$HOME/.stack"
13-
- "$TRAVIS_BUILD_DIR/.stack-work"
1410

1511
matrix:
1612
include:
17-
- ghc: 8.2.2
18-
- ghc: 8.4.4
19-
- ghc: 8.6.5
20-
- ghc: 8.8.3
21-
- ghc: 8.10.1
22-
23-
- ghc: 8.8.3
24-
env: STACK_YAML="$TRAVIS_BUILD_DIR/stack.yaml"
13+
- env: GHC='8.8.3'
14+
os: linux
15+
- env: GHC='8.8.3'
16+
os: osx
2517

2618
install:
27-
- |
28-
if [ -z "$STACK_YAML" ]; then
29-
cabal update
30-
cabal build --enable-tests --enable-benchmarks
31-
else
32-
curl -sSL https://get.haskellstack.org/ | sh
33-
stack --version
34-
stack build --system-ghc --test --no-run-tests
35-
fi
19+
# install stack and build project
20+
- curl -sSL https://get.haskellstack.org/ | sh
21+
- stack --version
22+
- stack build --test --no-run-tests --bench --no-run-benchmarks
3623

3724
script:
38-
- |
39-
if [ -z "$STACK_YAML" ]; then
40-
cabal test --enable-tests
41-
else
42-
stack build --system-ghc --test --bench --no-run-benchmarks --no-terminal --ghc-options=-Werror
43-
fi
25+
- stack test --no-terminal
4426

4527
notifications:
4628
email: false

0 commit comments

Comments
 (0)