Exclude work-in-progress branches from being built
Only build merges (the `master` branch & `release/*` branches),
the version-looking tags (1.2, 1.2rc9, 1.2.3, 1.2.3rc9, etc).
The work-in-progress branches are tested by the PR builds.
@@ -5,6 +5,13 @@ dist: xenial
language: python
python: "3.8"
+# Only test the final merges and releases. The work-in-progress branches are tested by PR builds.
+branches:
+ only:
+ - master
+ - /^release\/.*$/
+ - /^\d+\.\d+(\.\d+)?(\.?(rc|dev|pre|post)\d+)?(-\S*)?(\+\S*)?$/
+
# Linting is super-fast and lightweight, gives the near-instant feedback if code is wrong.
# It does not depend on the environment (services, dependencies, even the framework itself).
# Currently, most linters are optional and performed manually from time to time. This will change.
