-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
22 lines (18 loc) · 982 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
language: nix
cache:
directories:
- $HOME/nix.store
before_install:
- sudo mkdir -p /etc/nix
- sudo cat /etc/nix/nix.conf
- echo "substituters = https://cache.nixos.org/ file://$HOME/nix.store https://hydra.iohk.io" | sudo tee -a /etc/nix/nix.conf > /dev/null
- echo "trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs=" | sudo tee -a /etc/nix/nix.conf > /dev/null
- echo 'require-sigs = false' | sudo tee -a /etc/nix/nix.conf > /dev/null
- echo 'experimental-features = nix-command flakes' | sudo tee -a /etc/nix/nix.conf > /dev/null
- echo 'cores = 0' | sudo tee -a /etc/nix/nix.conf > /dev/null
- sudo cat /etc/nix/nix.conf
before_cache:
- mkdir -p $HOME/nix.store
- nix copy --to file://$HOME/nix.store -f default.nix buildInputs
script:
- nix build -L --cores 0 -f default.nix hinterface.checks