Skip to content

Commit

Permalink
travis: refine NixOS options check
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
joachifm committed May 15, 2016
1 parent b740e04 commit 27149b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions maintainers/scripts/travis-nox-review-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 27149b2

Please sign in to comment.