replace language:nix
This commit is contained in:
parent
a23be34258
commit
1f4fe01c65
1 changed files with 5 additions and 16 deletions
21
.travis.yml
21
.travis.yml
|
@ -1,5 +1,5 @@
|
||||||
language: nix
|
version: ~> 1.0
|
||||||
nix: 2.3.4
|
import: nix-community/nix-travis-ci:nix.yml@main
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
|
@ -23,20 +23,9 @@ env:
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- env: NIX_CHANNEL=https://nixos.org/channels/nixpkgs-unstable
|
- env: NIX_PATH: nixpkgs=channel:nixpkgs-unstable
|
||||||
- env: NIX_CHANNEL=https://nixos.org/channels/nixos-unstable
|
- env: NIX_PATH: nixpkgs=channel:nixos-unstable
|
||||||
- env: NIX_CHANNEL=https://nixos.org/channels/nixos-20.03
|
- env: NIX_PATH: nixpkgs=channel: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
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- nix-build ci.nix -A buildOutputs
|
- nix-build ci.nix -A buildOutputs
|
||||||
|
|
Loading…
Reference in a new issue