diff --git a/.travis.yml b/.travis.yml index 93192a6f..95142d4b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -84,3 +84,7 @@ notifications: template: - "%{result} %{repository_name} %{build_url}" - "#%{build_number} changes: %{compare_url}" + +# Only build pull requests and releases, don't build master on pushes, +# except through api or cron. +if: type IN (pull_request, api, cron) OR tag IS present