Skip to content

Commit 3915627

Browse files
committed
Don't run deploy script in integration tests
The deploy.sh was causing random integration tests to fail, possibly due to multiple jobs trying to push to the same repo/branch at the same time? The error message is: +git push git@github.com:rust-lang-nursery/rust-clippy.git gh-pages Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts. To github.com:rust-lang-nursery/rust-clippy.git ! [rejected] gh-pages -> gh-pages (fetch first) error: failed to push some refs to 'git@github.com:rust-lang-nursery/rust-clippy.git' hint: Updates were rejected because the re The travis log is always truncated in similar ways. Some examples: * https://travis-ci.org/rust-lang-nursery/rust-clippy/jobs/383325083#L1076-L1082 * https://travis-ci.org/rust-lang-nursery/rust-clippy/jobs/382711561#L2768-L2773
1 parent 0a368b4 commit 3915627

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ after_success: |
7272
#!/bin/bash
7373
if [ $(uname) == Linux ]; then
7474
set -ex
75-
./.github/deploy.sh
75+
if [ -z ${INTEGRATION} ]; then
76+
./.github/deploy.sh
77+
fi
7678
# trigger rebuild of the clippy-service, to keep it up to date with clippy itself
7779
if [ "$TRAVIS_PULL_REQUEST" == "false" ] &&
7880
[ "$TRAVIS_REPO_SLUG" == "Manishearth/rust-clippy" ] &&

0 commit comments

Comments
 (0)