Skip to content

Commit

Permalink
Merge pull request #896 from alphagov/use-govuk-sasslinter
Browse files Browse the repository at this point in the history
Use govuk.sassLinter
  • Loading branch information
36degrees committed Feb 9, 2017
2 parents f27d6aa + 0a21db8 commit dc1398a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

REPOSITORY = 'static'

def sassLinter() {
echo 'Running SASS linter'
sh('bundle exec govuk-lint-sass app/assets/stylesheets/govuk-component')
}

node {
// Deployed by Puppet's Govuk_jenkins::Pipeline manifest
def govuk = load '/var/lib/jenkins/groovy_scripts/govuk_jenkinslib.groovy'
Expand Down Expand Up @@ -52,9 +47,7 @@ node {

stage('Lint') {
govuk.rubyLinter()

// Can't use govuk.sassLinter as no way to provide custom paths... yet.
sassLinter()
govuk.sassLinter('app/assets/stylesheets/govuk-component')
}

stage('Test') {
Expand Down

0 comments on commit dc1398a

Please sign in to comment.