Only run downstream tests on release candidate branches
language: python
sudo: false
+stage: test
before_install:
- env
@@ -78,27 +79,36 @@ matrix:
os: osx
env: TOXENV=py37
- # TODO: make these integration tests
- python: 2.7
env: DOWNSTREAM=requests
+ stage: integration
- python: 3.7
env: DOWNSTREAM=requests
dist: xenial
sudo: required
+ stage: integration
- python: 2.7
env: DOWNSTREAM=botocore
+ stage: integration
- python: 3.7
env: DOWNSTREAM=botocore
dist: xenial
sudo: required
-
+ stage: integration
allow_failures:
- python: pypy-5.4
+stages:
+ - test
+
+ # Run integration tests for release candidates
+ - name: integration
+ if: type = pull_request AND head_branch =~ ^release-[\d.]+$
+
deploy:
- provider: script
script: bash _travis/deploy.sh
