on develop help sign in
Use xenial and manually install node 8 for ghcjs
bf8a772Oliver Batchelor
.travis.yml+12−7
@@ -7,7 +7,7 @@
7# version: 0.3.20190804.2
7# version: 0.3.20190804.2
8#
8#
9language: c
9language: c
10−dist: bionic
10+dist: xenial
11sudo: required
11sudo: required
12git:
12git:
13 # whether to recursively clone submodules
13 # whether to recursively clone submodules
@@ -25,10 +25,12 @@ before_cache:
25 - rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar
25 - rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar
26 - rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar.idx
26 - rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar.idx
27 - rm -rfv $CABALHOME/packages/head.hackage
27 - rm -rfv $CABALHOME/packages/head.hackage
28+
28matrix:
29matrix:
29 include:
30 include:
30 - compiler: ghcjs-8.4
31 - compiler: ghcjs-8.4
31− addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghcjs-8.4","cabal-install-3.0"]}}
32+ addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.4.4","cabal-install-3.0"]}}
33+ env: GHCJS_PACKAGE="ghcjs-8.4"
32 - compiler: ghc-8.6.5
34 - compiler: ghc-8.6.5
33 addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.5","cabal-install-2.4"]}}
35 addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.5","cabal-install-2.4"]}}
34 - compiler: ghc-8.4.4
36 - compiler: ghc-8.4.4
@@ -42,11 +44,13 @@ matrix:
42
44
43before_install:
45before_install:
44 - |
46 - |
45− if [ "$TRAVIS_OS_NAME" = "linux" ]; then
47+ if [ "$TRAVIS_OS_NAME" = "linux" ] && [ ! -z "$GHCJS_PACKAGE" ]; then
46− sudo add-apt-repository -y ppa:hvr/ghc;
48+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -;
49+ sudo sh -c "echo deb https://deb.nodesource.com/node_8.x xenial main > /etc/apt/sources.list.d/nodesource.list";
47− sudo add-apt-repository -y ppa:hvr/ghcjs;
50+ sudo add-apt-repository -y ppa:hvr/ghcjs;
48− sudo apt-get update;
51+ sudo apt-get update;
49− sudo apt-get install $CC cabal-install-3.0;
52+ sudo apt-get install nodejs;
53+ sudo apt-get install "$GHCJS_PACKAGE";
50 fi
54 fi
51 - HC=$(echo "/opt/$CC/bin/ghc" | sed 's/-/\//')
55 - HC=$(echo "/opt/$CC/bin/ghc" | sed 's/-/\//')
52 - WITHCOMPILER="-w $HC"
56 - WITHCOMPILER="-w $HC"
@@ -175,3 +179,4 @@ script:
175
179
176# REGENDATA ["--config=cabal.haskell-ci","cabal.project"]
180# REGENDATA ["--config=cabal.haskell-ci","cabal.project"]
177# EOF
181# EOF
182+
cabal.haskell-ci+1−1
@@ -1,4 +1,4 @@
1−distribution: bionic
1+distribution: xenial
2
2
3-- https://github.com/haskell/cabal/issues/6106
3-- https://github.com/haskell/cabal/issues/6106
4install-dependencies: False
4install-dependencies: False