1
0
Fork 0

replace language:nix

main
Travis A. Everett 2020-09-01 08:35:45 -05:00 committed by GitHub
parent a23be34258
commit 1f4fe01c65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 16 deletions

View File

@ -1,5 +1,5 @@
language: nix
nix: 2.3.4
version: ~> 1.0
import: nix-community/nix-travis-ci:nix.yml@main
sudo: false
@ -23,20 +23,9 @@ env:
matrix:
include:
- env: NIX_CHANNEL=https://nixos.org/channels/nixpkgs-unstable
- env: NIX_CHANNEL=https://nixos.org/channels/nixos-unstable
- env: NIX_CHANNEL=https://nixos.org/channels/nixos-20.03
install:
- nix --version
# for cachix we need travis to be a trusted nix user
- echo "trusted-users = $USER" | sudo tee -a /etc/nix/nix.conf
- sudo systemctl restart nix-daemon
- if [ -n "${CACHIX_CACHE}" ]; then travis_retry nix-channel --update; fi
- if [ -n "${CACHIX_CACHE}" ]; then nix-env -iA cachix -f https://cachix.org/api/v1/install; fi
- if [ -n "${CACHIX_CACHE}" ]; then cachix use "${CACHIX_CACHE}"; fi
- nix-channel --add "${NIX_CHANNEL}" nixpkgs
- travis_retry nix-channel --update
- env: NIX_PATH: nixpkgs=channel:nixpkgs-unstable
- env: NIX_PATH: nixpkgs=channel:nixos-unstable
- env: NIX_PATH: nixpkgs=channel:nixos-20.03
script:
- nix-build ci.nix -A buildOutputs