forked from tomsmalley/semantic-reflex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (28 loc) · 845 Bytes
/
.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
language: nix
nix: 2.0.4
sudo: yes
before_script:
- sudo mkdir -p /etc/nix
- echo "binary-caches = https://cache.nixos.org/ https://nixcache.reflex-frp.org" >> nix.conf
- echo "binary-cache-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI=" >> nix.conf
- sudo cp nix.conf /etc/nix/nix.conf
stages:
- build
- name: deploy
if: branch = master
jobs:
include:
- name: "GHC 8.6"
script: nix-build -A ghc8_6.semantic-reflex
- name: "GHCJS 8.6"
script: nix-build -A ghcjs8_6.semantic-reflex
- stage: deploy
script: make
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
local-dir: docs
on:
branch: master