From ce6889c6f90ba5bc4843afb1f4e321866b324ff6 Mon Sep 17 00:00:00 2001 From: Paul Bonaud Date: Mon, 5 Oct 2020 18:48:57 +0200 Subject: travis: use recent nixpkgs channel (20.09) to install dependencies --- .travis.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 6c68012..6c36f0a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,17 @@ --- language: nix -nix: 2.3.1 +nix: 2.3.4 +env: + - CUSTOM_NIX_PATH=nixpkgs=channel:nixos-20.09 - -# Use the new container infrastructure -sudo: false +# Travis nix integration will install nix AFTER the environment variables are set +# and the nix installer will overide NIX_PATH variable thus we need to re-export it +before_install: + - export NIX_PATH="$CUSTOM_NIX_PATH" install: - # Update nix channels - - nix-channel --add https://nixos.org/channels/nixpkgs-19.09-darwin nixpkgs - - nix-channel --remove nixpkgs-unstable - - nix-channel --update - - # Install ansible - - nix-env -i python3 ansible ansible-lint - - nix-env -if ./dhall-1.34.0.nix + # Install dependencies + - nix-env -i -f ./default.nix # Check ansible version - ansible --version -- cgit v1.2.3