forked from pymoca/pymoca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (51 loc) · 1.32 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
language: python
sudo: false
matrix:
include:
- os: linux
python: 3.5
env: TOXENV=py35
- os: linux
python: 3.6
env: TOXENV=py36
- os: linux
python: 3.7
# FIXME: Workaround for Python 3.7 support on TravisCI
dist: xenial
sudo: true
env: TOXENV=py37
after_success:
- tox -e coverage-report
- coveralls
# TODO: Re-add testing on MacOS
# Meta
- os: linux
# TODO: Use 3.7 when TravisCI has proper support for it
python: 3.6
env: TOXENV=flake8
# Deployment when all tests succeed. Skip installation and script.
- stage: deploy
before_install: true
install: true
script: true
os: linux
# TODO: Use 3.7 when TravisCI has proper support for it
python: 3.6
env: DEPLOY=true
before_install:
- pip install coveralls
install: pip install tox
script: tox -vv
cache: pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
deploy:
skip_cleanup: true
provider: pypi
user: pymoca.wheelbuilder
password:
secure: "GZaxb109ZfDBjhFfpWnPxsfNeRMjq226MyNUB7K3ferXpR3+MBx2pOfzuYf+VF8ypOeZ9DsCwVn2x+33eJEOoXUAS4HaCz1EYEgHvEsAGf6nZI9MlGP9AWgKTqvQBj6m/VrizuaXU9gs4sAWm6udH+nqzstmrp6XVZknNfADRRA="
distributions: "sdist bdist_wheel"
on:
tags: true
condition: $DEPLOY = true