forked from mattduck/gh2md
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (68 loc) · 4.57 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Environment ----------------
notifications:
email:
on_success: never
on_failure: change
sudo: false
language: python
cache: pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
env:
global:
secure: 1r59yROi+33PcYR+hCo8eYw18UuecDXRE2L/YLufJz13oBLp6wlZMvvyp4rrf+EPBvbgTi86ACRGLa4c3/YIgxkffHW8LNBRdGQXk+A8nrJOsL+6xzDlF4nwkggSMJI2ZLk6MNye4QtNBsoLhdyHLaO2VC4sAANJLk06e+atXfNzAaIv8vcxZcUXnklLBUz0ZR2uOaYB0ztiuDQNjjQWRB0IFkOKi76s95EYu9Ta/JgIk2UIojMwldB82EF75TMjpl2upvc92b++hfhSjGZKG5cm4bfbPQYN4HSqjycfdi886eRwkvs8z1vhveoHVDq9sqyr28s8636xvtAHy6fqOaTc8LMqTObHcpEhFGi3jH8cH3Ws4PQRlde146DYp4n9XIKpsAURMFIx6n8fA/tDH+pVmNrKim7gfZ++EQpPQT9quP4TBwrO8uZoo5wq0uJEry7TSgdIeAUFVFqeAcFPqhngF7j+pdbja4OB99EMHWBkE/9X5HEfIhSZbp2fO4Zs1k2rCFg7KI0I+RjPtZ7Tdsk+XjqdTCNCk+Ts9xDCswCK6xf54DCbjDwdG2vpioxCS6ZObHjgCRUAZI1ew8+4k1XDtnLs6sIrO953Xe7r5bkAK2DtdpsIGDYRmZ9+9zgrwTyhyr0x/3lVu0EdMix9yT6T9ZDR/sbR81FQTFFW6fk=
# Build commands ----------------
before_install:
- if [ -z "$GITHUB_ACCESS_TOKEN" ]; then echo "Environment requires access token" && exit 1; fi
install:
- pip install -r dev-requirements.txt
after_success:
- tox -e coverage-report
# Jobs / Stages ----------------
jobs:
include:
- stage: lint
python: '3.6'
script: make lint
- stage: test
python: '2.7'
env: TOXENV=py27
script: make test
- stage: test
python: '3.4'
env: TOXENV=py34
script: make test
- stage: test
python: '3.5'
env: TOXENV=py35
script: make test
- stage: test
python: '3.6'
env: TOXENV=py36
script: make test
- stage: release
python: 3.6
script: skip # Only run the deploy step
before_install: skip
after_success: skip
before_deploy:
- if [ -z "$TWINE_USERNAME" ]; then exit 1; fi
- if [ -z "$TWINE_PASSWORD" ]; then exit 1; fi
- if [ -z "$GITHUB_TAG_TOKEN" ]; then exit 1; fi
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- pip install -r dev-requirements.txt
- git status # For debugging
deploy:
provider: script
script: make release && git push --quiet https://mattduck:[email protected]/mattduck/gh2md.git --tags >/dev/null 2>&1
on:
branch: master
tags: false
condition: >
`make assert_clean_git assert_new_pypi_version >/dev/null 2>/dev/null; echo $?` == 0
after_deploy: pip install gh2md --upgrade
env:
- secure: "3MFAF/eQLEJIdGYcEWpe1TbEAIUH9/lbaeDdG7obw6Tkwa8vwM0Ji8hvvUtn781qDpcoy0eLbkoUKxmTr06S9ipsj0e/WR4dNH+jOCfr04JJW4JSxFJGP80FFqh/zsIRvBJjCD/l4D22FkYSzLXTV9vM7v6gWvdPHhu/m0lTlF5DXDpOHDFXLi6m/2uEPpnAb+B64L0MQMR+2gk5kFi3ueOztXooXvNA+IR7gC/70TXwAUbpD9le9zi0bYVyfohDNdlgwgX5SFkGRyjFw3lTguRTFm/Nu4u/Ln+TwKIBoKf94IwJAiFgNsfTMGCXGVz689Z7SrqgvRmWKxrjkoS/MZ1+w7fE76t8udJeBYqAIzXZEawGDmRFWgUgEQk3ZdplA2j9eofm1NMnM4ZwWMh1zBG3sDzbqR09S0KjpoeMjgXQ2la8iw5noh0KPaGT9fz29fJpiRxkfvmAsT72QIQ6wmh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