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
10.7.0-preview
Kyle K 2019-08-21 18:21:05 +00:00
parent c3a492f9b8
commit b547c8a85f
1 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,7 @@
branches:
except:
- l10n_master
os: os:
- linux - linux
- osx - osx
@ -22,6 +26,20 @@ node_js:
addons: addons:
chrome: stable 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: script:
- yarn test - yarn test
- yarn gulp release - yarn gulp release