Skip to content

Commit

Permalink
travis: run nixpkgs-lint in build script
Browse files Browse the repository at this point in the history
This will run nixpkgs-lint for each travis build.

Maybe??? fixes NixOS#11265
  • Loading branch information
matthewbauer committed Jul 11, 2016
1 parent 7a6503c commit caa5f9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ matrix:
- os: linux
sudo: false
script:
- ./maintainers/scripts/travis-nox-review-pr.sh nixpkgs-verify nixpkgs-manual nixpkgs-tarball
- ./maintainers/scripts/travis-nox-review-pr.sh nixpkgs-verify nixpkgs-manual nixpkgs-tarball nixpkgs-lint
- ./maintainers/scripts/travis-nox-review-pr.sh nixos-options nixos-manual
- os: linux
sudo: required
Expand Down
6 changes: 6 additions & 0 deletions maintainers/scripts/travis-nox-review-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 tarball creation"

nix-shell --packages nixpkgs-lint --run "nixpkgs-lint -f $TRAVIS_BUILD_DIR"
;;

pr)
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo "=== No pull request found"
Expand Down

0 comments on commit caa5f9c

Please sign in to comment.