-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
170 lines (170 loc) · 4.36 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
language: python
sudo: required
matrix:
include:
- os: linux
dist: trusty
python: 2.7
env:
- PYTHON_MAJOR_VERSION=2.7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- git
- libcurl4-openssl-dev
- unzip
- gcc-4.8
- g++-4.8
- cmake
- gfortran
- pandoc
- os: linux
dist: trusty
python: 3.4
env:
- PYTHON_MAJOR_VERSION=3.4
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- git
- libcurl4-openssl-dev
- unzip
- gcc-4.8
- g++-4.8
- cmake
- gfortran
- pandoc
- python3-pip
- os: linux
dist: trusty
python: 3.5
env:
- PYTHON_MAJOR_VERSION=3.5
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- git
- libcurl4-openssl-dev
- unzip
- gcc-4.8
- g++-4.8
- cmake
- gfortran
- pandoc
- python3-pip
- os: linux
dist: trusty
python: 3.6
env:
- PYTHON_MAJOR_VERSION=3.6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- git
- libcurl4-openssl-dev
- unzip
- gcc-4.8
- g++-4.8
- cmake
- gfortran
- pandoc
- python3-pip
- os: osx
osx_image: xcode8.2
language: generic
env:
- PYTHON_MAJOR_VERSION=2.7
- os: osx
osx_image: xcode8.2
language: generic
env:
- PYTHON_MAJOR_VERSION=3.4
- os: osx
osx_image: xcode8.2
language: generic
env:
- PYTHON_MAJOR_VERSION=3.5
- os: osx
osx_image: xcode8.2
language: generic
env:
- PYTHON_MAJOR_VERSION=3.6
- os: osx
osx_image: xcode8
language: generic
env:
- PYTHON_MAJOR_VERSION=2.7
- os: osx
osx_image: xcode8
language: generic
env:
- PYTHON_MAJOR_VERSION=3.4
- os: osx
osx_image: xcode8
language: generic
env:
- PYTHON_MAJOR_VERSION=3.5
- os: osx
osx_image: xcode8
language: generic
env:
- PYTHON_MAJOR_VERSION=3.6
before_install: |
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
rvm get head --auto-dotfiles;
brew update;
brew install pyenv || echo;
brew upgrade pyenv || echo;
brew install pandoc || echo;
pyenv --version
PYTHON_VERSION=$(pyenv install --list | tr -d ' ' | grep "^$PYTHON_MAJOR_VERSION" | grep -Ev "dev|rc|b" | tail -n 1)
pyenv install -s $PYTHON_VERSION
export PATH=$HOME/.pyenv/versions/$PYTHON_VERSION/bin:$PATH
python --version
if [[ -z $(command -v pip) ]]; then
curl -L -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
fi
pip --version
# protoc
pushd /tmp
wget https://github.com/google/protobuf/releases/download/v3.1.0/protoc-3.1.0-osx-x86_64.zip
unzip protoc-3.1.0-osx-x86_64.zip
popd
export PATH=/tmp/bin:$PATH
# bazel
brew install bazel
fi
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
# protoc
pushd /tmp
wget https://github.com/google/protobuf/releases/download/v3.1.0/protoc-3.1.0-linux-x86_64.zip
unzip protoc-3.1.0-linux-x86_64.zip
popd
export PATH=/tmp/bin:$PATH
# bazel
wget https://github.com/bazelbuild/bazel/releases/download/0.4.4/bazel_0.4.4-linux-x86_64.deb
sudo dpkg -i bazel_0.4.4-linux-x86_64.deb
fi
install:
- pip install -U pip setuptools wheel protobuf numpy
script:
- source travis_installer.sh
- ls
deploy:
provider: pypi
user: zihaolucky
password:
secure: "fWkt77N5B3011aBo3taFQpy3tbIQWyZsbl4fuPc/AO+DmUbv2Lbj3uPbPY/Sk3Jmfffty/oeIGJ1pazDRr4MPVLL86sPCMPNoMaujuxffn/x50KX87mET7ZRL9AfPm73L/pfEHBglKLybdNoTJMRBg+7dNLgEI7OhI/85pF6W1G6pyFIFp1BqK7HXWYhS8klXnjYUKcnYuadwJn3jdHIrrUJWPuPNiX7kArjAcGKkQNp8Oe2QFNbarsUgTyZOo5ZY74i+IGiMKDsaQpLdg4lxKvVo7lDUgzMOFpvdtVxhiG3bLvOrMUIuzfy/cqPVyXM21iPytMiSm6yydOxNFbv+00/NNh8nHFI/qmX+JsJr5VeaXBpMIuFIo7mthYblieeTTrp/M4D0DVrXLw/yrzbT0WwIYXkthxG7dr61DO7xbmMf9xpw6H5ly7OMUbNfwqst2reOF6A3T0nWapSTg7u2FSTvgne6tr8SI4hwLhYio5cG6Q1jWo+IiLaqMj+Uobmzm7LcOCwDy9OEabYV87FR75bJtvTx0enho0NXhkAvOC6MY45ijxwpYjCKE6SOpVb12fRgikE7KvdgExgEgO3xC15D4RR5MmDn/ahaywYsWhaZI0ySCuVE2dJDzJrzkobFdIWRY0cg9iK/XOjfCcoJGJjF+JStUVUz+9k1Te25OM="
distributions: bdist_wheel
on:
tags: true
skip_cleanup: true