forked from fonttools/pyclipper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
109 lines (102 loc) · 3.1 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
109
env:
global:
# directory containing the project source
- REPO_DIR=.
# pip dependencies to _build_ project
- BUILD_DEPENDS="Cython setuptools>=25 setuptools_scm setuptools_scm_git_archive"
# pip dependencies to _test_ project
- TEST_DEPENDS="sympy unittest2 pytest"
- PLAT=x86_64
- UNICODE_WIDTH=32
- TWINE_USERNAME="anthrotype"
- secure: sX3wbNcie0SOjV9r/7IqkmqDlBY5trhFLIGUzQmo0gdiKxSWM/07HkIbAHhXZB/nINkXGtWuhNdE3OQsh6MilODU5krE8hOOvfhh2lyrWVFk8BQstyeKZVlhGRX8GQfOViaOBncybnqPR5ovmAAo0whg+8qtL+kCE7MtmvG9WAQeeyhu45lg25ac/ZrUkJv1y/rjW9EuRDidGquU/1xcRe3s1H/2OnVvWaUgbU2KwTWQ2DRnXXeMdP3OgY8o818c7utjCt+gGaDmJgoJH0Bz8OiuNAZJrODp/0L/LeLDzyoI0Yc3osDlv5xnJq7Fsyer1ihV6ZuAaXZU1TkJvH4B5CeMWIUcWLxA3sOrAn3DDMO3ZdvsvYPOaCuI/k/4RCPZyV57h76Ibm6Qir71Fe4oNpIRiQm/zfD2H6Ez+E1R0u4SgPRsPFsD/YGF58vvP8KHliTMJCM27p5+ai6+ZDB0r7sLRVk0w/HLElRMNmpIcCEDcIjkZS95xffxRcQSXvj1otDDGcNxao4OxPdzbt2zIUZgsN+5uFjA3A0iAWwXd1/Auy11uqG+abDTxg5mAxQ0ovVsvL3Mle6CfvEp7e1mvpHxZRFARpjTH24Gt8nGGcakLeddhy43z0jpJxmYVxnPloDHTbSzvRnubwY0oIe3cZSbcxSJh1qWdzD66FNul5c=
# Travis only clones the latest 50 commits. We need the full repository to
# compute the version string from the git metadata:
# https://github.com/travis-ci/travis-ci/issues/3412#issuecomment-83993903
# https://github.com/pypa/setuptools_scm/issues/93
git:
depth: 9999999
language: generic
dist: xenial
services: docker
matrix:
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.5
- os: linux
env:
- MB_PYTHON_VERSION=3.5
- PLAT=i686
- 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: linux
env:
- MB_PYTHON_VERSION=3.8
- os: linux
env:
- MB_PYTHON_VERSION=3.8
- PLAT=i686
- os: osx
env:
- MB_PYTHON_VERSION=2.7
- os: osx
env:
- MB_PYTHON_VERSION=3.5
- os: osx
env:
- MB_PYTHON_VERSION=3.6
- os: osx
env:
- MB_PYTHON_VERSION=3.7
- os: osx
env:
- MB_PYTHON_VERSION=3.8
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 tagged, upload wheels (and sdist) to PyPI
- |
if [ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_REPO_SLUG" == "fonttools/pyclipper" ]; then
pip install --upgrade twine
twine upload wheelhouse/*.whl
if [ "$BUILD_SDIST" == true ]; then
pip install --upgrade cython setuptools
python setup.py sdist
twine upload dist/*.zip
fi
fi