]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update Travis CI config.
authorXhmikosR <xhmikosr@gmail.com>
Sun, 21 Oct 2018 09:18:20 +0000 (12:18 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 29 Oct 2018 14:04:22 +0000 (16:04 +0200)
Only run `coveralls` and `check-broken-links` tasks when we run the Test phase.

.travis.yml

index 8b577c6300e3bd65076947c4cf95f082342e1cfa..451a79d11764d608ccec36d617fdf2c41b75f125 100644 (file)
@@ -10,9 +10,9 @@ install:
   - npm install
 script:
   - npm test
-  - if [ "$TRAVIS_NODE_VERSION" = "8" ]; then npm run check-broken-links; fi
+  - if [[ "$TRAVIS_NODE_VERSION" = "8" && "$TRAVIS_BUILD_STAGE_NAME" = "Test" ]]; then npm run check-broken-links; fi
 after_success:
-  - if [ "$TRAVIS_NODE_VERSION" = "8" ]; then npm run coveralls; fi
+  - if [[ "$TRAVIS_NODE_VERSION" = "8" && "$TRAVIS_BUILD_STAGE_NAME" = "Test" ]]; then npm run coveralls; fi
 stages:
   - test
   - name: browser