forked from aliyun/aliyun-odps-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
94 lines (88 loc) · 2.65 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
env:
global:
- REPO_NAME=aliyun-odps-python-sdk
notifications:
email: false
language: python
matrix:
include:
- sudo: required
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 PYVER=cp27-cp27mu
- sudo: required
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_i686 PYVER=cp27-cp27mu
- sudo: required
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 PYVER=cp27-cp27m
- sudo: required
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 PYVER=cp35-cp35m
- sudo: required
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 PYVER=cp36-cp36m
- sudo: required
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 PYVER=cp37-cp37m
- sudo: required
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_i686 PYVER=cp27-cp27m
- sudo: required
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_i686 PYVER=cp35-cp35m
- sudo: required
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_i686 PYVER=cp36-cp36m
- sudo: required
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_i686 PYVER=cp37-cp37m
- os: osx
language: generic
env: PYTHON=2.7.12
- os: osx
language: generic
env: PYTHON=3.5.3
- os: osx
language: generic
env: PYTHON=3.6.1
- os: osx
language: generic
env: PYTHON=3.7.0
install:
- sudo chmod 777 bin/travis/*
- bin/travis/${TRAVIS_OS_NAME}"-install.sh"
#- bin/travis/${TRAVIS_OS_NAME}"-test.sh"
script:
- ls dist
after_success:
- echo "[distutils]" > ~/.pypirc
- echo "index-servers =" >> ~/.pypirc
- echo " pypi" >> ~/.pypirc
- echo "[pypi]" >> ~/.pypirc
- echo "repository=https://upload.pypi.org/legacy/" >> ~/.pypirc
- echo "username=pyodps" >> ~/.pypirc
- echo "password=$PSD" >> ~/.pypirc
- if [[ "$OSTYPE" == "darwin"* ]]; then
PYENV_ROOT="$HOME/.pyenv";
PATH="$PYENV_ROOT/bin:$PATH";
eval "$(pyenv init -)";
if [ "$PYTHON" == "3."* ]; then
pyenv global $PYTHON;
fi;
fi
- python -m pip install twine
# upload only commit with tag
- if [ "$TRAVIS_TAG" ]; then
python -m twine upload -r pypi --skip-existing dist/*.whl;
else echo "Not on a tag, won't deploy to pypi";
fi