Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Drosty/e2fafc7c8a79d25ae6eb62d95e417238 to your computer and use it in GitHub Desktop.
Save Drosty/e2fafc7c8a79d25ae6eb62d95e417238 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment