Navigation Menu

Skip to content

Commit

Permalink
Review PR in travis with nox-review
Browse files Browse the repository at this point in the history
  • Loading branch information
madjar committed Sep 21, 2014
1 parent c8ba9e2 commit 5ab79f6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
@@ -0,0 +1,3 @@
language: python
python: "3.4"
script: ./maintainers/scripts/travis-nox-review-pr.sh
26 changes: 26 additions & 0 deletions maintainers/scripts/travis-nox-review-pr.sh
@@ -0,0 +1,26 @@
#! /usr/bin/env bash
set -e

# Install Nix
bash <(curl https://nixos.org/nix/install)
source $HOME/.nix-profile/etc/profile.d/nix.sh

# Make sure we can use hydra's binary cache
sudo mkdir /etc/nix
echo "binary-caches = http://cache.nixos.org http://hydra.nixos.org" | sudo tee /etc/nix/nix.conf
echo "trusted-binary-caches = http://hydra.nixos.org" | sudo tee -a /etc/nix/nix.conf

if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
echo "Not a pull request, checking evaluation"
nix-env -f. -qaP --drv-path
exit 0
fi

echo "Installing nox"
git clone https://github.com/madjar/nox
pip install -e nox

echo "Reviewing PR"
# The current HEAD is the PR merged into origin/master, so we compare
# against origin/master
nox-review wip --against origin/master

0 comments on commit 5ab79f6

Please sign in to comment.