Skip to content

Instantly share code, notes, and snippets.

@chalettu
Created September 12, 2017 13:22
Show Gist options
  • Save chalettu/ea14bbd67b3fe080b891762ac3478be3 to your computer and use it in GitHub Desktop.
Save chalettu/ea14bbd67b3fe080b891762ac3478be3 to your computer and use it in GitHub Desktop.
Travis CI detect Commit messages
- "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
- if [ "$TWBS_TEST" = validate-html ] && [ $TWBS_DO_VALIDATOR -ne 0 ]; then ./test-infra/s3_cache.py download rubygems; fi
after_script:
- if [ "$TWBS_TEST" = core ]; then ./test-infra/s3_cache.py upload npm-modules; fi
- if [ "$TWBS_TEST" = validate-html ] && [ $TWBS_DO_VALIDATOR -ne 0 ]; then ./test-infra/s3_cache.py upload rubygems; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment