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.
This commit is contained in:
Joachim Fasting 2016-05-15 11:33:27 +02:00
parent b740e046ab
commit 27149b201a
No known key found for this signature in database
GPG key ID: 4330820E1E04DCF4

View file

@ -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