forked from entropia/tip-toi-reveng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (28 loc) · 1.29 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
language: nix
nix: 2.2.1
jobs:
include:
- stage: Build
env: TARGET=linux-exe
- env: TARGET=windows-exe
- env: TARGET=static-exe
- env: TARGET=osx-exe-bundle
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: TARGET=book
- stage: Package
env: TARGET=release-zip
install:
- sudo mkdir -p /etc/nix
- echo "binary-caches = https://cache.nixos.org https://nixcache.reflex-frp.org https://static-haskell-nix.cachix.org https://hydra.iohk.io" | sudo tee -a /etc/nix/nix.conf > /dev/null
- echo "binary-cache-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI= static-haskell-nix.cachix.org-1:Q17HawmAwaM1/BfIxaEDKAxwTOyRVhPG5Ji9K3+FvUU= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" | sudo tee -a /etc/nix/nix.conf > /dev/null
script:
- nix-env -iA cachix -f https://cachix.org/api/v1/install
- cachix use tttool
- if [ -n "$CACHIX_SIGNING_KEY" ]; then cachix push tttool --watch-store; fi &
- nix-build nix -A $TARGET
- sleep 10 # to allow cachix finish uploading