forked from online-ml/river
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (71 loc) · 2.57 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
dist: xenial
os: linux
language: python
python:
- 3.6
- 3.7
- 3.8
cache:
apt: true
directories:
- $HOME/.cache/pip
- $HOME/downloads
install: skip
script: ./ci/test.sh ${TRAVIS_PYTHON_VERSION}
jobs:
include:
- stage: pypi
services:
- docker
env: &pypi-env
- CIBW_BUILD="cp36-* cp37-* cp38-*"
- CIBW_BEFORE_BUILD="pip install cython"
install: &pypi-install
- pip install cibuildwheel cython twine
script: &pypi-script
- cibuildwheel --output-dir dist
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then python setup.py sdist ; fi
- ls dist
- twine upload dist/* -u ${PYPI_USER} -p ${PYPI_PASSWORD}
if: tag IS present
- stage: pypi
os: osx
language: generic
env: *pypi-env
install: *pypi-install
script: *pypi-script
if: tag IS present
- stage: pypi
os: windows
language: shell
env:
- CIBW_BUILD="cp36-* cp37-* cp38-*"
- CIBW_BEFORE_BUILD="pip install cython"
- PATH=/c/Python36:/c/Python36/Scripts:$PATH
before_install:
- choco install python3 --version 3.6.8 --no-progress -y
install: *pypi-install
script: *pypi-script
if: tag IS present
- stage: docs
install:
- sudo apt-get install graphviz pandoc
- python setup.py install
- pip install -e ".[docs]"
- make execute-notebooks
script: make doc
after_success:
- git config --global user.email "[email protected]"
- git config --global user.name "MaxHalford"
- git config --global push.default matching
- git clone https://${GH_TOKEN}@github.com/creme-ml/creme-ml.github.io.git creme-ml.github.io
- cd creme-ml.github.io
- rm -r *
- cp -r ../site/* .
- git add -A
- git commit --allow-empty -m "Travis build number $TRAVIS_BUILD_NUMBER"
- git push --set-upstream origin master
if: tag IS present
env:
global:
secure: diU7M/lZeRtnN1cpb9nSBwtyflzmKTsB5rp3T0lgwNI24egwSITSidvMON+D1DNTHaxE/JCHpWMFvU+ivBIrBcmYZeO7tqijj3FrKPQxMZ1GiI0l7c5ifIdO0FmxjdzkzfLdlJs2wm/PuhEf9ckkMR265BpLBsfmL3/JnFu5mEKVzs5ai15Ky7ushnkhX28Bv89It+UOfD7R3zQk50a7c+8B+BkHe72mf9kJsvD9Qi8keiogGezw+eYbxcjbh13vq4YQzbaBm8eux93Zt3pfTwQZff7iX89RbwtrM7p1jFTv34tMJyyp8EJIicwhTy1PQvoPMUvSzrCajJIGCboy/FLZgbscj6monbohTlSEtpTaq9sJsfn1GB4ofST0OVTdj6pW8aztYrDPA8zXGNV+Cy7k4y7sk4V0QLLC8A2nTn7X/63GCIFn7aezwWi6JmZMuG+54qJqpb7sV5vrsUrJ5SV3W5T/9+qek5BnVbzb+WO0a4FHuJidvpxHi3Jl4VlwUVzjmuKVrjHoO7Z8Dxm2WvoK68LZtZsDUeyh1NX5qHp1Br/PX1I52xAEQiyGqM8JQy0S62I3NkmP/EJ1W3Px3yj7KIE+WuY+SyQmuzKo2ad0p8sYWIWfRtwJBerc0b5wQ8hXM0yCWwh6ZAebPMb6TexgDvfUbzPL1HSP7vDoQ9s=