mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
59ad93a4f3
This should avoid the 28 lines of unnecessary spam about fetching stdenv and bash: ```` === Building pull request #28261 these paths will be fetched (0.51 MiB download, 2.50 MiB unpacked): /nix/store/2pm24nzym7z11nddnf6vmqhsqmzx9h3g-bash-4.4-p12-dev /nix/store/3n6g5nmyn63gsgjc7z03rsd88s2q7b7i-stdenv /nix/store/7mpcc6x6b3db595rsqr1qjckpaj1dym8-bash-4.4-p12-info /nix/store/d9hb8f6j2syq08hw97qajdcdkl9lwg9n-bash-4.4-p12-doc fetching path ‘/nix/store/d9hb8f6j2syq08hw97qajdcdkl9lwg9n-bash-4.4-p12-doc’... *** Downloading ‘https://cache.nixos.org/nar/013kcshsm2hzpngmrf4izq3ag8s9avrkhz5z8l8mgnxay1lxlz99.nar.xz’ to ‘/nix/store/d9hb8f6j2syq08hw97qajdcdkl9lwg9n-bash-4.4-p12-doc’... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 357k 100 357k 0 0 3342k 0 --:--:-- --:--:-- --:--:-- 3408k fetching path ‘/nix/store/2pm24nzym7z11nddnf6vmqhsqmzx9h3g-bash-4.4-p12-dev’... *** Downloading ‘https://cache.nixos.org/nar/1225myjpymp5bv0x5zl08dmdz786jf86fshc2dwa3zgxasrppcfi.nar.xz’ to ‘/nix/store/2pm24nzym7z11nddnf6vmqhsqmzx9h3g-bash-4.4-p12-dev’... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 54312 100 54312 0 0 231k 0 --:--:-- --:--:-- --:--:-- 232k fetching path ‘/nix/store/7mpcc6x6b3db595rsqr1qjckpaj1dym8-bash-4.4-p12-info’... *** Downloading ‘https://cache.nixos.org/nar/04dzl4jlhxhisiby9lyw2k6q2w5ns3xy1h6gfdc14qn649lshy2f.nar.xz’ to ‘/nix/store/7mpcc6x6b3db595rsqr1qjckpaj1dym8-bash-4.4-p12-info’... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 107k 100 107k 0 0 1179k 0 --:--:-- --:--:-- --:--:-- 1198k fetching path ‘/nix/store/3n6g5nmyn63gsgjc7z03rsd88s2q7b7i-stdenv’... *** Downloading ‘https://cache.nixos.org/nar/013xg2cnv9wf3fkhcl3b3b6iihqnwhy65m6ijb6ynwavy584w2xi.nar.xz’ to ‘/nix/store/3n6g5nmyn63gsgjc7z03rsd88s2q7b7i-stdenv’... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 8640 100 8640 0 0 143k 0 --:--:-- --:--:-- --:--:-- 148k === Reviewing PR 28261 : busybox: 1.26.2 -> 1.27.1, fix bootstrap ```` (From https://travis-ci.org/NixOS/nixpkgs/jobs/264390932)
82 lines
2.2 KiB
Bash
Executable file
82 lines
2.2 KiB
Bash
Executable file
#! /usr/bin/env bash
|
|
set -e
|
|
|
|
while test -n "$1"; do
|
|
|
|
# tell Travis to use folding
|
|
echo -en "travis_fold:start:$1\r"
|
|
|
|
case $1 in
|
|
|
|
nixpkgs-verify)
|
|
echo "=== Verifying that nixpkgs evaluates..."
|
|
|
|
nix-env --file $TRAVIS_BUILD_DIR --query --available --json > /dev/null
|
|
;;
|
|
|
|
nixos-options)
|
|
echo "=== Checking NixOS options"
|
|
|
|
nix-build $TRAVIS_BUILD_DIR/nixos/release.nix --attr options --show-trace
|
|
;;
|
|
|
|
nixos-manual)
|
|
echo "=== Checking NixOS manuals"
|
|
|
|
nix-build $TRAVIS_BUILD_DIR/nixos/release.nix --attr manual --show-trace
|
|
;;
|
|
|
|
nixpkgs-manual)
|
|
echo "=== Checking nixpkgs manuals"
|
|
|
|
nix-build $TRAVIS_BUILD_DIR/pkgs/top-level/release.nix --attr manual --show-trace
|
|
;;
|
|
|
|
nixpkgs-tarball)
|
|
echo "=== Checking nixpkgs tarball creation"
|
|
|
|
nix-build $TRAVIS_BUILD_DIR/pkgs/top-level/release.nix --attr tarball --show-trace
|
|
;;
|
|
|
|
nixpkgs-unstable)
|
|
echo "=== Checking nixpkgs unstable job"
|
|
|
|
nix-instantiate $TRAVIS_BUILD_DIR/pkgs/top-level/release.nix --attr unstable --show-trace
|
|
;;
|
|
|
|
nixpkgs-lint)
|
|
echo "=== Checking nixpkgs lint"
|
|
|
|
nix-shell --packages nixpkgs-lint --run "nixpkgs-lint -f $TRAVIS_BUILD_DIR"
|
|
;;
|
|
|
|
nox)
|
|
echo "=== Fetching Nox from binary cache"
|
|
|
|
# build nox (+ a basic nix-shell env) silently so it's not in the log
|
|
nix-shell -p nox stdenv --command true
|
|
;;
|
|
|
|
pr)
|
|
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
|
echo "=== No pull request found"
|
|
else
|
|
echo "=== Building pull request #$TRAVIS_PULL_REQUEST"
|
|
|
|
token=""
|
|
if [ -n "$GITHUB_TOKEN" ]; then
|
|
token="--token $GITHUB_TOKEN"
|
|
fi
|
|
|
|
nix-shell --packages nox --run "nox-review pr --slug $TRAVIS_REPO_SLUG $token $TRAVIS_PULL_REQUEST"
|
|
fi
|
|
;;
|
|
|
|
*)
|
|
echo "Skipping unknown option $1"
|
|
;;
|
|
esac
|
|
|
|
echo -en "travis_fold:end:$1\r"
|
|
shift
|
|
done
|