forked from mirrors/nixpkgs
travis build: oops
Evaluation is too long - shouldn't have removed /dev/nulling I wish I had a travis test environment :sad:
This commit is contained in:
parent
b084b39375
commit
e20e0470bf
|
@ -4,6 +4,7 @@ set -e
|
||||||
export NIX_CURL_FLAGS=-sS
|
export NIX_CURL_FLAGS=-sS
|
||||||
|
|
||||||
if [[ $1 == nix ]]; then
|
if [[ $1 == nix ]]; then
|
||||||
|
echo "=== Installing Nix..."
|
||||||
# Install Nix
|
# Install Nix
|
||||||
bash <(curl -sS https://nixos.org/nix/install)
|
bash <(curl -sS https://nixos.org/nix/install)
|
||||||
source $HOME/.nix-profile/etc/profile.d/nix.sh
|
source $HOME/.nix-profile/etc/profile.d/nix.sh
|
||||||
|
@ -17,8 +18,10 @@ build-max-jobs = 4
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Verify evaluation
|
# Verify evaluation
|
||||||
nix-env -f. -qa --json
|
echo "=== Verifying that nixpkgs evaluates..."
|
||||||
|
nix-env -f. -qa --json >/dev/null
|
||||||
elif [[ $1 == nox ]]; then
|
elif [[ $1 == nox ]]; then
|
||||||
|
echo "=== Installing nox..."
|
||||||
git clone -q https://github.com/madjar/nox
|
git clone -q https://github.com/madjar/nox
|
||||||
pip --quiet install -e nox
|
pip --quiet install -e nox
|
||||||
elif [[ $1 == build ]]; then
|
elif [[ $1 == build ]]; then
|
||||||
|
@ -28,6 +31,7 @@ elif [[ $1 == build ]]; then
|
||||||
echo "===> Not a pull request, checking evaluation"
|
echo "===> Not a pull request, checking evaluation"
|
||||||
nix-build pkgs/top-level/release.nix -A tarball
|
nix-build pkgs/top-level/release.nix -A tarball
|
||||||
else
|
else
|
||||||
|
echo "=== Checking PR"
|
||||||
# The current HEAD is the PR merged into origin/master, so we compare
|
# The current HEAD is the PR merged into origin/master, so we compare
|
||||||
# against origin/master
|
# against origin/master
|
||||||
nox-review wip --against origin/master
|
nox-review wip --against origin/master
|
||||||
|
|
Loading…
Reference in a new issue