diff options
author | Kyle K <doctor.whom@gmail.com> | 2019-08-21 21:21:05 +0300 |
---|---|---|
committer | Kyle K <doctor.whom@gmail.com> | 2019-08-22 00:11:40 +0300 |
commit | b547c8a85fa073ce3b5fb5ca08bf407b4c0cd055 (patch) | |
tree | 709bae2017959911bb92e7b707bd1dd4bae48e0c /.travis.yml | |
parent | c3a492f9b8ac7abc755ecb273040838bb8e76a6e (diff) |
Ignore the l10n_master branch for CI purposes
https://docs.travis-ci.com/user/customizing-the-build/#building-specific-branches
Documentation says that the .travis.yml file needs to be present on all active branches of the project.
I don't know if that means we need to have this change in the branch for it to take effect.
Also exiting builds early if
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index b5adde47..857c8f6c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,7 @@ +branches: + except: + - l10n_master + os: - linux - osx @@ -22,6 +26,20 @@ node_js: addons: chrome: stable +before_install: + - | + echo "Target branch: $TRAVIS_BRANCH" + echo "Commit range: $TRAVIS_COMMIT_RANGE" + if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then + COMMIT_RANGE="$TRAVIS_BRANCH" + else + COMMIT_RANGE="$TRAVIS_COMMIT_RANGE" + fi + git diff --name-only $COMMIT_RANGE | grep -qvE '(\.md)|(^(locales|resources/osd))/' || { + echo "Only files not used in the build process were updated, aborting." + exit + } + script: - yarn test - yarn gulp release |