-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
23 lines (20 loc) · 1011 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
language: nix
nix: 2.2.1
jobs:
include:
- stage: Build
env: TARGET=linux-exe
- env: TARGET=windows-exe
- env: TARGET=static-exe
- 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