-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
37 lines (33 loc) · 1.05 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: python
install:
- pip install -r test_requirements.txt
- pip install bumpversion twine
stages:
- test
- name: merge-deploy
script:
- python setup.py pytest
cache:
- pip: true
jobs:
include:
- python: 2.7
- python: 3.5
- python: 3.6
after_success:
- codecov
- python: 3.7-dev
- stage: merge-deploy
name: "version bump and merge into master"
python: 3.6
script:
- "git clone https://gist.github.com/2c04596a45ccac57fe8dde0718ad58ee.git /tmp/travis-automerge"
- "chmod a+x /tmp/travis-automerge/auto_merge_travis_with_bumpversion.sh"
- "BRANCHES_TO_MERGE_REGEX='develop' BRANCH_TO_MERGE_INTO=master /tmp/travis-automerge/auto_merge_travis_with_bumpversion.sh"
- stage: merge-deploy
name: "deploy to pypi"
python: 3.6
script:
- "git clone https://gist.github.com/cf9b261f26a1bf3fae6b59e7047f007a.git /tmp/travis-autodist"
- "chmod a+x /tmp/travis-autodist/pypi_dist.sh"
- "BRANCHES_TO_DIST='develop' /tmp/travis-autodist/pypi_dist.sh"