]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
add to TRAVIS_COMMIT_MSG, TWBS_DO_VALIDATOR, TWBS_DO_SAUCE vars to Travis
authorChris Rebert <code@rebertia.com>
Sun, 18 May 2014 22:48:40 +0000 (15:48 -0700)
committerChris Rebert <code@rebertia.com>
Mon, 19 May 2014 00:20:54 +0000 (17:20 -0700)
.travis.yml

index 4aa74c6cde7b09e9a8f835cc691a178fd68c4b8d..59ef5fe7793ab638a6111bf11166c0c5b2e5afc2 100644 (file)
@@ -6,6 +6,9 @@ before_install:
   - rvm use 1.9.3 --fuzzy
   - export GEMDIR=$(rvm gemdir)
   - if [ "$TWBS_TEST" = validate-html ]; then echo "ruby=$(basename $GEMDIR) jekyll=$JEKYLL_VERSION" > pseudo_Gemfile.lock; fi
+  - "export TRAVIS_COMMIT_MSG=\"$(git log --format=%B --no-merges -n 1)\""
+  - echo "$TRAVIS_COMMIT_MSG" | grep '\[skip validator\]'; export TWBS_DO_VALIDATOR=$?; true
+  - echo "$TRAVIS_COMMIT_MSG" | grep '\[skip sauce\]'; export TWBS_DO_SAUCE=$?; true
 install:
   - time npm install -g grunt-cli
   - ./test-infra/s3_cache.py download npm-modules