mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 09:17:07 +03:00
travis build: More silence
This commit is contained in:
parent
ea7e43768a
commit
e3563e6c23
@ -4,31 +4,32 @@ set -e
|
|||||||
export NIX_CURL_FLAGS=-sS
|
export NIX_CURL_FLAGS=-sS
|
||||||
|
|
||||||
# Install Nix
|
# Install Nix
|
||||||
bash <(curl https://nixos.org/nix/install)
|
echo "=== Installing Nix..."
|
||||||
|
bash <(curl -sS https://nixos.org/nix/install) >/dev/null 2>&1
|
||||||
source $HOME/.nix-profile/etc/profile.d/nix.sh
|
source $HOME/.nix-profile/etc/profile.d/nix.sh
|
||||||
|
|
||||||
# Make sure we can use hydra's binary cache
|
# Make sure we can use hydra's binary cache
|
||||||
sudo mkdir /etc/nix
|
sudo mkdir /etc/nix
|
||||||
sudo tee /etc/nix/nix.conf <<EOF
|
sudo tee /etc/nix/nix.conf <<EOF >/dev/null
|
||||||
binary-caches = http://cache.nixos.org http://hydra.nixos.org
|
binary-caches = http://cache.nixos.org http://hydra.nixos.org
|
||||||
trusted-binary-caches = http://hydra.nixos.org
|
trusted-binary-caches = http://hydra.nixos.org
|
||||||
build-max-jobs = 4
|
build-max-jobs = 4
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo "First of all, checking evaluation, including meta"
|
echo "=== Checking evaluation, including meta"
|
||||||
nix-env -f. -qa --json > /dev/null
|
nix-env -f. -qa --json >/dev/null
|
||||||
|
|
||||||
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
|
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; 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
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Installing nox"
|
echo "=== Installing nox"
|
||||||
git clone https://github.com/madjar/nox
|
git clone https://github.com/madjar/nox >/dev/null
|
||||||
pip --quiet install -e nox
|
pip --quiet install -e nox
|
||||||
|
|
||||||
echo "Reviewing PR"
|
echo "=== Reviewing 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 New Issue
Block a user