chiark / gitweb /
package/ci: test that I didn't forget to update compiled CSS.
authorVladimír Vondruš <mosra@centrum.cz>
Sun, 17 Jun 2018 10:06:08 +0000 (12:06 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Sun, 17 Jun 2018 11:17:46 +0000 (13:17 +0200)
package/ci/travis.yml

index 9bbeb2d56c5a93eb5b532b005a5d11c6e3fb8b4e..7a73243cca2c918a0fb9bde69acb1db7abcaa92b 100644 (file)
@@ -59,6 +59,12 @@ script:
   # Test client doxygen JS
   - if [ "$WITH_NODE" == "ON" ]; then cd $TRAVIS_BUILD_DIR && istanbul cover doxygen/test/test-search.js; fi
 
+  # Test that compiled CSS is up-to-date. First display the diff, then check
+  # with diff-index which should print what's wrong and return with non-zero
+  # exit code.
+  - if [ "$WITH_THEME" == "ON" ]; then cd $TRAVIS_BUILD_DIR/css && ./postprocess.sh && git diff --color=always . | cat; fi
+  - if [ "$WITH_THEME" == "ON" ]; then cd $TRAVIS_BUILD_DIR/css && git diff-index --exit-code HEAD -- .; fi
+
 # Cache the downloaded doxygen
 cache:
   directories: