Skip to content

Commit

Permalink
Fix defining branch names on main branches.
Browse files Browse the repository at this point in the history
  • Loading branch information
f1ames committed Jun 4, 2021
1 parent 2e93c54 commit 1ce966c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ jobs:
# Define target branches
- TARGET_BRANCH="origin/$TRAVIS_BRANCH"
- CURRENT_BRANCH="origin/$TRAVIS_PULL_REQUEST_BRANCH"
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
sh -e TARGET_BRANCH="origin/HEAD^" && CURRENT_BRANCH="origin/HEAD";
- 'if [ "$TRAVIS_PULL_REQUEST" = "true" ]; then
TARGET_BRANCH="origin/HEAD^"
CURRENT_BRANCH="origin/HEAD";
fi'
# Setup CKEditor 4 testing environment
- pwd
Expand Down Expand Up @@ -66,7 +67,8 @@ jobs:
- TARGET_BRANCH="origin/$TRAVIS_BRANCH"
- CURRENT_BRANCH="origin/$TRAVIS_PULL_REQUEST_BRANCH"
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
sh -e TARGET_BRANCH="origin/HEAD^" && CURRENT_BRANCH="origin/HEAD";
TARGET_BRANCH="origin/HEAD^"
CURRENT_BRANCH="origin/HEAD";
fi'
# Setup CKEditor 4 testing environment
- pwd
Expand Down

0 comments on commit 1ce966c

Please sign in to comment.