From 1f4fe01c659e660c928c7bf6eb2dff8b8fce6065 Mon Sep 17 00:00:00 2001 From: "Travis A. Everett" Date: Tue, 1 Sep 2020 08:35:45 -0500 Subject: [PATCH] replace language:nix --- .travis.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8d01732..6485802 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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