tangled
alpha
login
or
join now
huwcampbell.com
/
grenade
1
fork
atom
💣 Machine learning which might blow up in your face 💣
1
fork
atom
overview
issues
pulls
pipelines
travis: Add ghc 8.8.2 and switch to cabal-3.0
Erik de Castro Lopo
6 years ago
6d0b8c3f
b70f6a8d
+11
-12
1 changed file
expand all
collapse all
unified
split
.travis.yml
+11
-12
.travis.yml
···
2
2
3
3
# The following enables several GHC versions to be tested; often it's enough to test only against the last release in a major GHC version. Feel free to omit lines listings versions you don't need/want testing for.
4
4
env:
5
5
-
- CABALVER=1.24 GHCVER=8.0.2
6
6
-
- CABALVER=2.0 GHCVER=8.2.2
7
7
-
- CABALVER=2.0 GHCVER=8.4.4
8
8
-
- CABALVER=2.0 GHCVER=8.6.5
5
5
+
- GHCVER=8.0.2
6
6
+
- GHCVER=8.2.2
7
7
+
- GHCVER=8.4.4
8
8
+
- GHCVER=8.6.5
9
9
+
- GHCVER=8.8.2
9
10
10
11
# Note: the distinction between `before_install` and `install` is not important.
11
12
before_install:
12
13
- travis_retry sudo add-apt-repository -y ppa:hvr/ghc
13
14
- travis_retry sudo apt-get update
14
14
-
- travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER happy-1.19.5 alex-3.1.7 libblas-dev liblapack-dev
15
15
-
- export PATH=/opt/alex/3.1.7/bin:/opt/happy/1.19.5/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$HOME/.cabal/bin:$PATH
15
15
+
- travis_retry sudo apt-get install cabal-install-3.0 ghc-$GHCVER libblas-dev liblapack-dev
16
16
+
- export PATH=/opt/cabal/bin:/opt/ghc/$GHCVER/bin:$PATH
16
17
17
18
install:
18
18
-
- cabal --version
19
19
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
20
20
-
- travis_retry cabal update
21
21
-
- cabal sandbox init
22
22
-
- cabal install --enable-tests --enable-benchmarks
20
20
+
- travis_retry cabal-3.0 update
23
21
24
22
notifications:
25
23
email: false
26
24
27
25
# Here starts the actual work to be performed for the package under test; any command which exits with a non-zero exit code causes the build to fail.
28
26
script:
29
29
-
- cabal build
30
30
-
- cabal test --show-details=streaming
27
27
+
- cabal-3.0 configure --enable-tests
28
28
+
- cabal-3.0 build all
29
29
+
- cabal-3.0 test --test-show-details=direct -j1
31
30