]> xenbits.xensource.com Git - libvirt.git/commitdiff
travis: skip builds on -maint branches
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 21 Mar 2018 14:04:54 +0000 (14:04 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 11 Apr 2018 09:08:10 +0000 (10:08 +0100)
For patches pushed upstream we want builds run on master branch, but
don't want them run on the -maint branches, as we are not keeping the
.travis.yml file on stable branches updated wrt latest needs of travis
CI platforms.

We can't just whitelist 'master' though, because that will prevent
developers triggering their own private travis builds. So we just
blacklist *-maint, since developers will typically use named feature
branches for any work.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
.travis.yml

index 01dffaa60202419b86c6ff511c03613a1eb1ceff..d3f72d46f3d9bb9930abff9e10b83cff810ec3f0 100644 (file)
@@ -2,6 +2,10 @@ sudo: false
 language: c
 cache: ccache
 
+branches:
+  except:
+  - /^.*-maint$/
+
 matrix:
   include:
     - compiler: gcc