Skip to content
Snippets Groups Projects
Commit 67b9f307 authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Add logic to fail the build if there are uncommitted lessToSass changes. (#1397)

parent 346f8e0d
Branches
Tags
No related merge requests found
......@@ -14,6 +14,7 @@ before_script:
- composer install
- npm install -g eslint@"<5.0.0"
- npm install -g jshint@"2.9.6"
- npm install
cache:
directories:
......@@ -22,4 +23,4 @@ cache:
- $HOME/.composer/cache/files
script:
- vendor/bin/phing eslint jshint phpunitfast phpcs-console php-cs-fixer-dryrun
- vendor/bin/phing eslint jshint phpunitfast phpcs-console php-cs-fixer-dryrun checkLessToSass
......@@ -131,6 +131,12 @@
<exec command="jshint --config=${srcdir}/tests/jshint.json --exclude=themes/*/js/vendor --reporter=checkstyle ${srcdir}/themes &gt; ${builddir}/reports/jshint-checkstyle.xml" />
</target>
<!-- Run LessToSass, error if there are uncommitted changes (used by Travis) -->
<target name="checkLessToSass">
<exec command="grunt lessToSass" checkreturn="true" passthru="true" />
<exec command="git diff --exit-code *.scss" checkreturn="true" passthru="true" />
</target>
<!-- PHP API Documentation -->
<target name="phpdoc">
<!-- GET phpDocumentor.phar -->
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment