-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
49 lines (45 loc) · 1.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
language: python
matrix:
include:
- sudo: required
services:
- docker
env: PIP=pip
env:
global:
- TWINE_USERNAME=amaya
- CIBW_SKIP="cp27-* cp33-* cp34-* cp35-* *_i686"
- CIBW_MANYLINUX1_X86_64_IMAGE=hoshizora/manylinux1-clang_x86_64:clang5
#- CIBW_MANYLINUX1_I686_IMAGE=hoshizora/manylinux1-clang_i686:clang5
- CIBW_ENVIRONMENT="CC=clang CXX=clang++ BOOST_INCLUDEDIR=/usr/include/boost148"
- >-
CIBW_BEFORE_BUILD="
NCORES=\$(grep -c ^processor /proc/cpuinfo 2> /dev/null) &&
NPARS=\$((\$NCORES*2)) &&
yum update &&
yum install -y boost148-devel boost148-filesystem boost148-system &&
( [ ! -e /usr/lib64/libboost_system-1_48.so ] && (
ln -s /usr/lib64/libboost_system.so.1.48.0 /usr/lib64/libboost_system-1_48.so &&
ln -s /usr/lib64/libboost_system-mt.so.1.48.0 /usr/lib64/libboost_system-mt-1_48.so &&
ln -s /usr/lib64/libboost_filesystem.so.1.48.0 /usr/lib64/libboost_filesystem-1_48.so &&
ln -s /usr/lib64/libboost_filesystem-mt.so.1.48.0 /usr/lib64/libboost_filesystem-mt-1_48.so ) || : ) &&
( [ ! `which mecab 2> /dev/null` ] && (
cd &&
export CC=gcc &&
export CXX=g++ &&
git clone --depth 1 --single-branch -b master https://github.com/taku910/mecab.git &&
cd mecab/mecab &&
./configure &&
make -j\$NPARS &&
make install ) || : ) &&
cd /project &&
pip install numpy &&
make init"
script:
- pip install cibuildwheel==0.9.1
- cibuildwheel --output-dir wheelhouse
- |
if [[ ${TRAVIS_TAG} ]]; then
python3 -m pip install twine
python3 -m twine upload wheelhouse/*.whl
fi