Skip to content

Instantly share code, notes, and snippets.

@chrisroos
Created August 20, 2015 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisroos/86ff8fcc21ba89d32264 to your computer and use it in GitHub Desktop.
Save chrisroos/86ff8fcc21ba89d32264 to your computer and use it in GitHub Desktop.

Slimmer

bundle exec govuk-lint-ruby --diff --cached --format clang bin lib test

Example build

https://ci-new.alphagov.co.uk/job/govuk_slimmer/797/console

Signonotron2

if [[ ${GIT_BRANCH} != "origin/master" ]]; then
  bundle exec govuk-lint-ruby \
    --format html --out rubocop-${GIT_COMMIT}.html \
    --format clang \
    app test lib spec config
fi

Example build

https://ci-new.alphagov.co.uk/job/govuk_signonotron2/571/console

Whitehall

# Lint changes introduced in this branch, but not for master
if [[ ${GIT_BRANCH} != "origin/master" ]]; then
  bundle exec govuk-lint-ruby \
    --diff \
    --cached \
    --format html --out rubocop-${GIT_COMMIT}.html \
    --format clang \
    app test lib
fi

Example build

https://ci-new.alphagov.co.uk/job/govuk_whitehall/11856/console

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