-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
36 lines (32 loc) · 1.22 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
language: nix
nix: 2.2.2
jobs:
include:
- stage: Build
env: OS=linux GHCVER=ghc865
- stage: Build
env: OS=linux GHCVER=ghc881
- env: OS=macos GHCVER=ghc865
os: osx
# Fix OSX, see https://travis-ci.community/t/cannot-use-nix-support-on-osx/2927
language: generic
before_install:
- curl https://nixos.org/nix/install | sh
- source /Users/travis/.nix-profile/etc/profile.d/nix.sh
- env: OS=macos GHCVER=ghc881
os: osx
# Fix OSX, see https://travis-ci.community/t/cannot-use-nix-support-on-osx/2927
language: generic
before_install:
- curl https://nixos.org/nix/install | sh
- source /Users/travis/.nix-profile/etc/profile.d/nix.sh
install:
- sudo mkdir -p /etc/nix
- echo "substituters = https://cache.nixos.org https://hydra.iohk.io" | sudo tee -a /etc/nix/nix.conf > /dev/null
- echo "trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" | sudo tee -a /etc/nix/nix.conf > /dev/null
script:
- nix-build --argstr haskellCompiler $GHCVER -A hsPkgs.jsaddle-dom.components.library
notifications:
irc:
channels: "irc.freenode.net#ghcjs"
email: true