From 27149b201a1746e457fd14e136986cee00127929 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Sun, 15 May 2016 11:33:27 +0200 Subject: [PATCH] travis: refine NixOS options check Looks like --show-trace wasn't as useful as I'd hoped. Also, because checking nixos options is cheaper than checking the tarball, it makes sense to check the options first to fail faster. --- maintainers/scripts/travis-nox-review-pr.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maintainers/scripts/travis-nox-review-pr.sh b/maintainers/scripts/travis-nox-review-pr.sh index e9ca22117aa4c..db0f449c92afc 100755 --- a/maintainers/scripts/travis-nox-review-pr.sh +++ b/maintainers/scripts/travis-nox-review-pr.sh @@ -23,12 +23,12 @@ elif [[ $1 == nox ]]; then elif [[ $1 == build ]]; then source $HOME/.nix-profile/etc/profile.d/nix.sh + echo "=== Checking NixOS options" + nix-build nixos/release.nix -A options + echo "=== Checking tarball creation" nix-build pkgs/top-level/release.nix -A tarball - echo "=== Checking NixOS options" - nix-build --show-trace nixos/release.nix -A options - if [[ $TRAVIS_PULL_REQUEST == false ]]; then echo "=== Not a pull request" else