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).
This commit is contained in:
Matthieu Gautier 2018-04-16 16:13:17 +02:00
parent a394c4292c
commit 1ed8889e26
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ branches:
only:
- master
- /\d+\.\d+\.\d+$/
if: type != push OR tag IS present
before_install:
- eval "${MATRIX_EVAL}"
- ${CXX} --version