From: Vladimír Vondruš Date: Sun, 17 Jun 2018 10:06:08 +0000 (+0200) Subject: package/ci: test that I didn't forget to update compiled CSS. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=0787ce67e561593aaa94f9489f5afff05c661d66;p=blog.git package/ci: test that I didn't forget to update compiled CSS. --- diff --git a/package/ci/travis.yml b/package/ci/travis.yml index 9bbeb2d5..7a73243c 100644 --- a/package/ci/travis.yml +++ b/package/ci/travis.yml @@ -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: