Skip to content

Commit

Permalink
Test against a matching sass-spec feature branch by default (#1082)
Browse files Browse the repository at this point in the history
Rather than always defaulting to master, if Travis is running for a
feature branch or a pull request targeting a feature branch, it will
default to using the same feature branch in sass-spec.
  • Loading branch information
nex3 committed Sep 17, 2020
1 parent 015a76c commit 6ec78f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tool/travis/sass-spec-ref.sh
Expand Up @@ -7,7 +7,11 @@
# run. If we're running specs for a pull request which refers to a sass-spec
# pull request, we'll run against the latter rather than sass-spec master.

default=master
if [[ "$TRAVIS_BRANCH" == feature.* ]]; then
default="$TRAVIS_BRANCH"
else
default=master
fi

if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
>&2 echo "TRAVIS_PULL_REQUEST: $TRAVIS_PULL_REQUEST."
Expand Down

0 comments on commit 6ec78f9

Please sign in to comment.