travis: run nixpkgs-lint in build script
This will run nixpkgs-lint for each travis build. We'll disable "nixpkgs-lint" for now, it was a little too verbose: https://travis-ci.org/NixOS/nixpkgs/jobs/144290920
This commit is contained in:
parent
5282a336a4
commit
7c37ac0edd
@ -38,6 +38,12 @@ while test -n "$1"; do
|
|||||||
nix-build $TRAVIS_BUILD_DIR/pkgs/top-level/release.nix --attr tarball --show-trace
|
nix-build $TRAVIS_BUILD_DIR/pkgs/top-level/release.nix --attr tarball --show-trace
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
nixpkgs-lint)
|
||||||
|
echo "=== Checking nixpkgs lint"
|
||||||
|
|
||||||
|
nix-shell --packages nixpkgs-lint --run "nixpkgs-lint -f $TRAVIS_BUILD_DIR"
|
||||||
|
;;
|
||||||
|
|
||||||
pr)
|
pr)
|
||||||
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
||||||
echo "=== No pull request found"
|
echo "=== No pull request found"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user