This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (24 loc) · 1.58 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
language: nix
nix: 2.2.2
matrix:
include:
- env: NIX_CHANNEL=https://nixos.org/channels/nixos-19.09
env:
global:
secure: apQ7Q628bsZkTS0fSk4rd+JvqgVCIA2gw8xxuzb2ZWTybjt9wPrwXstseKmcXAa15LPG9ns9AmsKW/nJFb0ZTWtFSb7Z4CuRRrBxl7osumLhciTFOc5naPbcMc3WXVgFBugzdYeVbCWl1X3t/xmCgfoeKv972kjxpS/a49rzrIxmezhQjKlZzkf+QwRVPJMlwTy6BOXPRki5ubpYTvM0J+w4fJdmDjv8/Tm5FPrYM9yw+jLz7jJaEl3JUtzpV0bZWkyxmVQ2SQnfF3ja1p2uTOqdC90QwO2K2zZlUQ31i6kyKVcYrNFIcRpbh814Fdv7zFX1aSP1dP6fOq4y3xUxsuX1YXtnL878+NC5O78m6+KzQfJcHAzPF7rYN5JlrzEBKmcQQg3nq1VbJAh11qFnrM2ApZHx860inWI4+IjiowsmkxQOvey9qRlwBV2TtHnMg5TtxHflVv5ccBqGEtzpjqteUgFDh+iNrmqMYvsFiafoSR2UEEPDvW7SVHvfIIqef8RBE4UFA8jbBYCtGuFUfqPy/iqBoFEMmLblspAsfrV+NmR4YwnJJojE3uvtUB6AJzRupWW/WIk10wNnZT/d5qZD4HndD1gKd4McEBOFnmKc1bJRV5GGoZtbOSmx04KrBXrqdZD1ZmvKU2ZFVPOeWpYTdUdHYJOIYDd1m90DdiY=
install:
- sudo mkdir /etc/nix && echo 'sandbox = true' | sudo tee /etc/nix/nix.conf
- echo "binary-caches = https://cache.nixos.org https://danieldk-ci.cachix.org" |
sudo tee -a /etc/nix/nix.conf > /dev/null
- echo "binary-cache-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
danieldk-ci.cachix.org-1:OeS8qTw4e0+CVVAvcBTAjccsthUGhnnX+nh5ZuUe35A=" | sudo tee
-a /etc/nix/nix.conf > /dev/null
- nix-env -iA cachix -f https://cachix.org/api/v1/install
- cachix use danieldk-ci
- if [ -n "$CACHIX_SIGNING_KEY" ]; then cachix push danieldk-ci --watch-store; fi
&
- nix-channel --add "${NIX_CHANNEL}" nixpkgs
- travis_retry nix-channel --update
script:
- nix-build --expr 'with import <nixpkgs> {}; callPackage ./default.nix {}'
- sleep 10 # Allow cachix to finish