From 1ed8889e26407ab6d678879b3834b5a92bf359e4 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Mon, 16 Apr 2018 16:13:17 +0200 Subject: [PATCH] Do not do unecessary build. Build only if the travis event is not a push (pull_request, cron, ..) or we are pushing a tag (to build releases). --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 7a03bcf..4d2edd7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ branches: only: - master - /\d+\.\d+\.\d+$/ +if: type != push OR tag IS present before_install: - eval "${MATRIX_EVAL}" - ${CXX} --version