forked from fonttools/openstep-plist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
108 lines (102 loc) · 3.17 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
env:
global:
# directory containing the project source
- REPO_DIR=.
# pip dependencies to _test_ project
- TEST_DEPENDS="tox"
- PLAT=x86_64
- UNICODE_WIDTH=32
- TWINE_USERNAME="anthrotype"
- secure: A/mxebMQ6+Bd+xdcmzx5ECI7mOriHLU7D56dZtY1trzFfayDssRgMOfzAmuAjW3fG89nrX1yrRB3MQA8aDwxfB6nCer0QQ8SBZyf6eMINLo0eFII84jJBxuTY8tbiXqpAUlFnwtkja2IntG+Ac3Sr5vea1lrWixwVKw2mMGc562lSYK26n7ty7Ga2PLHjGClVF5tMemlyG+z/M9/XaTXjAfGeMoTlBt35YHHx7Ihb4D5yZiQ8JoieuWrqPfuZ20oC9C0JiOFyFvFvoFRweYUJYR4CVdc9Tx+i60+vrlFTI2wZNp37JIwEgeJNcVLFGrK6/mQbmsOe8oINoiX+Sf+7RFKHbVKlanco+4VyKmvwNLGJev0UCORZbYCGC85qwpG1YJxrm6y4sXbqAVaq6pmo5h9NtaKgz1qI1f8mFR0jOWdslcXLPMt2P21/UHRdKuxD2Qo9yweJ4Vnu/eDFzdtaTL7/oNzNa9yDcOHITgF0wnp9vP+7cf1r/VQuunx91C/syzvc5BTywQ/NKjXw92UcTymvRN07LKWr6rzc3YxooahStnQMi5bOMJ3OVRTwEOlvYkvKJ9J8coVcwoiVnsxqKOKDHL+vtyYhpBA4sePOLQlz4ajv9oRKv5lA5bOD2XcwAmSxfud1zdpTB4Snldb4TFaHuFkAf4q3rgMg+59xbo=
language: python
# The travis Python version is unrelated to the version we build and test
# with. This is set with the MB_PYTHON_VERSION variable.
python: 3.5
sudo: required
dist: trusty
services: docker
matrix:
exclude:
# Exclude the default Python 3.5 build
- python: 3.5
include:
- os: linux
env:
- MB_PYTHON_VERSION=2.7
- os: linux
env:
- MB_PYTHON_VERSION=2.7
- UNICODE_WIDTH=16
- os: linux
env:
- MB_PYTHON_VERSION=2.7
- PLAT=i686
- os: linux
env:
- MB_PYTHON_VERSION=2.7
- PLAT=i686
- UNICODE_WIDTH=16
- os: linux
env:
- MB_PYTHON_VERSION=3.6
- BUILD_SDIST=true
- os: linux
env:
- MB_PYTHON_VERSION=3.6
- PLAT=i686
- os: linux
env:
- MB_PYTHON_VERSION=3.7
- os: linux
env:
- MB_PYTHON_VERSION=3.7
- PLAT=i686
- os: osx
language: generic
env:
- MB_PYTHON_VERSION=2.7
- os: osx
language: generic
env:
- MB_PYTHON_VERSION=3.6
- os: osx
language: generic
env:
- MB_PYTHON_VERSION=3.7
- os: linux
python: 3.6
before_install: false
install:
- if [ -z "$TRAVIS_TAG" ]; then pip install tox; fi
script:
- if [ -z "$TRAVIS_TAG" ]; then tox -e py36-cov; fi
after_success:
- if [ -z "$TRAVIS_TAG" ]; then tox -e codecov; fi
- os: linux
python: 2.7
before_install: false
install:
- if [ -z "$TRAVIS_TAG" ]; then pip install tox; fi
script:
- if [ -z "$TRAVIS_TAG" ]; then tox -e py27-cov; fi
after_success:
- if [ -z "$TRAVIS_TAG" ]; then tox -e codecov; fi
before_install:
- source multibuild/common_utils.sh
- source multibuild/travis_steps.sh
- before_install
install:
- build_wheel $REPO_DIR $PLAT
script:
- install_run $PLAT
after_success:
- |
if [ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_REPO_SLUG" == "fonttools/openstep-plist" ]; then
pip install --upgrade twine
twine upload wheelhouse/*.whl
if [ "$BUILD_SDIST" == true ]; then
pip install --upgrade setuptools setuptools_scm cython
python setup.py --quiet sdist --dist-dir dist
twine upload dist/*.zip
fi
fi