Created
June 15, 2015 12:43
-
-
Save MaksimAbramchuk/b40e49e19b1e1c2fe042 to your computer and use it in GitHub Desktop.
CircleCI + Rubocop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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).