Skip to content

Instantly share code, notes, and snippets.

@MaksimAbramchuk
Created June 15, 2015 12:43
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save MaksimAbramchuk/b40e49e19b1e1c2fe042 to your computer and use it in GitHub Desktop.
Save MaksimAbramchuk/b40e49e19b1e1c2fe042 to your computer and use it in GitHub Desktop.
CircleCI + Rubocop
To circle.yml:
dependencies:
post:
- bin/cisetup
checkout:
post:
- git fetch origin --depth=1000000
To bin/cisetup:
export GITHUB_ACCESS_TOKEN=<your github access token>
export PULL_REQUEST_URL=${CI_PULL_REQUEST}
export PULL_REQUEST_ID=`echo $PULL_REQUEST_URL | grep -o -E ‘[0–9]+$’ | head -1 | sed -e ‘s/^0\+//’`
((bin/bundle exec pronto run -f github_pr -c origin/master)) || true
@iconnor
Copy link

iconnor commented Feb 16, 2017

UPDATE: I think the CI variable on line 15 should be CI_PULL_REQUESTS now and GITHUB_ACCESS_TOKEN should be PRONTO_GITHUB_ACCESS_TOKEN on 13 (but you can store that in the project settings in Circle rather than in the source code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment