diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2016-07-07 20:07:01 +0000 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2016-07-12 21:34:58 +0000 |
commit | 7c37ac0edd999b2eb34fc91c2f91050e390ccaa2 (patch) | |
tree | ae7f740a5c75e49d9108b551fdbfa80a4d8e9882 /maintainers | |
parent | 5282a336a4cda925f1e1d213702c3c31e2b3bcee (diff) |
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
Diffstat (limited to 'maintainers')
-rwxr-xr-x | maintainers/scripts/travis-nox-review-pr.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/maintainers/scripts/travis-nox-review-pr.sh b/maintainers/scripts/travis-nox-review-pr.sh index 35ac3d443048e..386868301a254 100755 --- a/maintainers/scripts/travis-nox-review-pr.sh +++ b/maintainers/scripts/travis-nox-review-pr.sh @@ -38,6 +38,12 @@ while test -n "$1"; do 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) if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo "=== No pull request found" |