Skip to content

Commit d8c5a2e

Browse files
cblpwillbasky
authored andcommitted
Add GHCJS support (#119, #121)
1 parent 43a233f commit d8c5a2e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ language: generic
1212
cache:
1313
directories:
1414
- _build
15+
- $HOME/.cabal
1516
- $HOME/.local/bin
1617
- $HOME/.stack
1718

@@ -24,6 +25,14 @@ addons:
2425
- qt5-default
2526

2627
before_install:
28+
- sudo add-apt-repository ppa:hvr/ghc -y
29+
- sudo add-apt-repository ppa:hvr/ghcjs -y
30+
- sudo apt-get update -q
31+
- sudo apt-get install cabal-install-3.0 ghc-8.4.4 ghcjs-8.4 -y
32+
- export PATH=/opt/ghcjs/8.4/bin:/opt/ghc/bin:$PATH
33+
34+
- cabal update
35+
2736
# Download and unpack the stack executable
2837
- mkdir -p ~/.local/bin
2938
- export PATH=$HOME/.local/bin:$PATH
@@ -50,6 +59,8 @@ matrix:
5059
- compiler: GHC 8.4
5160
env: STACK_YAML="ghc-8.4.yaml"
5261
install: build_deps
62+
- compiler: GHCJS 8.4
63+
script: cabal v2-build --ghcjs --with-compiler=ghcjs all
5364
- name: hlint
5465
install: $STACK build hlint
5566
script: $STACK exec -- hlint .

0 commit comments

Comments
 (0)