-
Notifications
You must be signed in to change notification settings - Fork 206
/
.travis.yml
95 lines (89 loc) · 3.29 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
language: c
matrix:
include:
- os: osx
env:
- TRAVIS_PYTHON_VERSION="2.7"
- DEPLOYABLE="true"
- os: osx
env:
- TRAVIS_PYTHON_VERSION="3.5"
- DEPLOYABLE="true"
- os: osx
env:
- TRAVIS_PYTHON_VERSION="3.6"
- DEPLOYABLE="true"
- os: linux
env:
- TRAVIS_PYTHON_VERSION="2.7"
- os: linux
env:
- TRAVIS_PYTHON_VERSION="3.5"
- os: linux
env:
- TRAVIS_PYTHON_VERSION="3.6"
#- services: docker
# sudo: required
# env:
# - DEPLOY_TARGET="manylinux1"
# - DEPLOYABLE="true"
dist: trusty
before_install:
- |
# Skip if manylinux1
if [ "$DEPLOY_TARGET" = "manylinux1" ]; then
echo "Skip before_install step..."
else
# fastFM-core depends on cblas
if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; sudo apt-get install -y libopenblas-dev; fi
if [[ "$TRAVIS_PYTHON_VERSION" =~ "^2" ]]; then
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi
else
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi
fi
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
hash -r
conda config --set always_yes yes --set changeps1 no
conda update -q conda
# Useful for debugging any issues with conda
conda info -a
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION cython numpy pandas scipy scikit-learn nose
source activate test-environment
fi
install:
- |
git submodule update --init --recursive
if [ "$DEPLOY_TARGET" = "manylinux1" ]; then
:
else
make
python setup.py bdist_wheel
pip install dist/*.whl
fi
script:
- |
if [ "$DEPLOY_TARGET" = "manylinux1" ]; then
#build for 64-bit
docker run --rm -v `pwd`:/io quay.io/pypa/manylinux1_x86_64 /io/.travis/build-wheels.sh
else
nosetests
fi
deploy:
provider: releases
api_key:
secure: AJcZoe2+OiMJ4VlSkASAeMc/ii0ZRnj2PFaaL7zlSbx1THMpY/49U5BSyqX1PQioPSlTV3ZsIXI3u7KyqoXIQSXWzAuaBzpLTLS85fGSuTvUuexmaJtKU92OC143tuVVLCPnjC992+1uyctjrxMSqgoaUolfYkEftt5RGrMIKl2duGfDXrPXIueHSl8FQGXkmlY6NqkRx2v5kxsAjFcurvwTNU8ptJ84jVKjrE6t1IB61vp2eUcqVR/z6Lwau6mdvIybglnbH4lCMXP98zEIibLA8vbn3XxrC+0uU7Kjz37K6/CsJEPNL5tujJDMRKAupnrkgPsAGTpsAn6O6uLUz0ISgcen8R6KJ7cBli+cq08OZ3JLLoJpqkni62YVSQV+uYkQk9b5Pu09vUTOozJMnOqLSj9hVIswyxGiFPcTFskMgqMdx15M59gd0YpXH633YqwBgRmWNsctp4BKnTaE3iGW6aZc8lrXxpL7qcVAosjmpjLp3jiPXVSRdYf0yHl6pDUj5ZVyu27kAn1/I9JL0nH19zjXF2tUlEjuT9ydHwnhmsgBN/V+JhZxi7ZeEbOZfY1MfekKM/NwSRehVEp/J0XWqWg+kIXRU/rqY1/w0vLVNFeQirpEjUp39eCBydXeS3Bik8uANW2UTxojJo3LBfLLoAT8ZWFb3YrIBAYkzjc=
file_glob: true
file: dist/fastFM-*.whl
skip_cleanup: true
on:
tags: true
condision: $DEPLOYEABLE = "true"