Don't run CI on push except on master

This avoids double-testing PRs that are made from branches on
jonhoo/rust-imap.
This commit is contained in:
Jon Gjengset 2018-11-24 14:32:51 -05:00
parent 2d28884da7
commit 1e9ac02b69
No known key found for this signature in database
GPG key ID: D64AC9D67176DC71

View file

@ -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 &&