Skip to content

Commit

Permalink
chore: add next branch to travis (#1327)
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg authored and nnixaa committed Mar 28, 2019
1 parent 464f85e commit 21bf0a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ env:
branches:
only:
- master
- next

matrix:
fast_finish: true
Expand Down
6 changes: 1 addition & 5 deletions scripts/ci/travis-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ fi
CURRENT_BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)

# Get commit diff
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
fileDiff=$(git diff --name-only $TRAVIS_COMMIT_RANGE)
else
fileDiff=$(git diff --name-only $TRAVIS_BRANCH...HEAD)
fi
fileDiff=$(git diff --name-only $TRAVIS_COMMIT_RANGE)

# Check if tests can be skipped
if [[ ${fileDiff} =~ ^(.*\.md\s*)*$ ]]; then
Expand Down

0 comments on commit 21bf0a5

Please sign in to comment.