From 0787ce67e561593aaa94f9489f5afff05c661d66 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 17 Jun 2018 12:06:08 +0200 Subject: [PATCH] package/ci: test that I didn't forget to update compiled CSS. --- package/ci/travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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: -- 2.30.2