Skip to content

Commit

Permalink
Merge pull request microsoft#1865 from QCoDeS/astafan8-travis-branch-…
Browse files Browse the repository at this point in the history
…rules

Explicitly whitelist branches and tags to build
  • Loading branch information
jenshnielsen authored Dec 5, 2019
2 parents b5434a7 + 0405ae4 commit ff00f45
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
branches:
only:
- master
# All release branches which start with "release/v", e.g. "release/v0.8.*"
- /^release\/v\S+/
# all release tags
# The regexp is taken from PEP 440 (https://www.python.org/dev/peps/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressions)
- /^v([1-9][0-9]*!)?(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))?(\.post(0|[1-9][0-9]*))?(\.dev(0|[1-9][0-9]*))?$/

language: python
sudo: required
dist: xenial
Expand Down

0 comments on commit ff00f45

Please sign in to comment.