-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
26 lines (22 loc) · 1023 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
language: nix
nix: 2.3.1
before_install:
# Add my Nix cache (https://jmackie.cachix.org)
- sudo mkdir -p /etc/nix
- echo "binary-caches = https://cache.nixos.org https://jmackie.cachix.org" | sudo tee -a /etc/nix/nix.conf
- echo "binary-cache-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= jmackie.cachix.org-1:A3aexXezmMsIDaz+X3XTvPdMIpQB3Xv/mKSGGyGQNvk=" | sudo tee -a /etc/nix/nix.conf
script:
# NOTE: $CACHIX_* variables are only defined on master
# so we don't push branch builds to the cache.
#
# For cachix install instructions see https://github.com/cachix/cachix#installation
- |
if [ -n "$CACHIX_SIGNING_KEY" ] && [ -n "$CACHIX_AUTH_TOKEN" ]; then
nix-env -iA cachix -f https://cachix.org/api/v1/install
cachix authtoken "$CACHIX_AUTH_TOKEN"
cachix use jmackie
cachix push --watch-store jmackie &
fi
- nix-build
- sleep 10 # allow cachix to finish uploading
# See https://github.com/entropia/tip-toi-reveng/blob/master/.travis.yml