From 1e9ac02b696eeaaff4c47fea97dce42eefe1cee3 Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Sat, 24 Nov 2018 14:32:51 -0500 Subject: [PATCH] Don't run CI on push except on master This avoids double-testing PRs that are made from branches on jonhoo/rust-imap. --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 4616538..e4cbf9a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,10 @@ rust: - beta - nightly +# only test master on push +# always test things that aren't pushes (like PRs) +if: type != push OR branch = master + before_script: - if [[ "$INTEGRATION" == "true" ]]; then docker pull greenmail/standalone:1.5.8 &&