Skip to content

Commit 5f1e94c

Browse files
Don't run travis tests on master.
This saves us builders for more helpful purposes.
1 parent a8dc246 commit 5f1e94c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ before_script:
153153
df -h;
154154
du . | sort -nr | head -n100
155155
- >
156-
if [ "$ALLOW_PR" = "" ] && [ "$TRAVIS_BRANCH" != "auto" ]; then
156+
if ([ "$ALLOW_PR" = "" ] && [ "$TRAVIS_BRANCH" != "auto" ]) || \
157+
([ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]); then
157158
export RUN_SCRIPT="echo 'skipping, not a full build'";
158159
else
159160
RUN_SCRIPT="stamp src/ci/init_repo.sh . $HOME/rustsrc";

0 commit comments

Comments
 (0)