forked from AxeldeRomblay/MLBox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
88 lines (88 loc) · 2.84 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
language: python
matrix:
include:
- os: linux
python: '3.5'
- os: linux
python: '3.6'
- os: linux
python: '3.7'
- os: osx
language: generic
python: '3.5'
before_install:
- brew install libomp
- brew upgrade pyenv
- brew install pyenv-virtualenv
- pyenv install 3.5.6
- eval "$(pyenv init -)"
- pyenv virtualenv 3.5.6 venv
- pyenv activate venv
- os: osx
language: generic
python: '3.6'
before_install:
- brew install libomp
- brew upgrade pyenv
- brew install pyenv-virtualenv
- pyenv install 3.6.7
- eval "$(pyenv init -)"
- pyenv virtualenv 3.6.7 venv
- pyenv activate venv
- os: osx
language: generic
python: '3.7'
before_install:
- brew install libomp
- brew upgrade pyenv
- brew install pyenv-virtualenv
- pyenv install 3.7.2
- eval "$(pyenv init -)"
- pyenv virtualenv 3.7.2 venv
- pyenv activate venv
- os: windows
language: sh
python: '3.5'
before_install:
- choco install python --version 3.5.4
- export PATH="/c/Python35:/c/Python35/Scripts:$PATH"
- os: windows
language: sh
python: '3.6'
before_install:
- choco install python --version 3.6.7
- export PATH="/c/Python36:/c/Python36/Scripts:$PATH"
- os: windows
language: sh
python: '3.7'
before_install:
- choco install python --version 3.7.2
- export PATH="/c/Python37:/c/Python37/Scripts:$PATH"
install:
- pip install coverage
- pip install codecov
- pip install -U pytest
- pip install --upgrade setuptools wheel
script:
- python setup.py install
- cd tests
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_PYTHON_VERSION" = "3.7" ] ; then
coverage run -m --source=../mlbox/ pytest; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_PYTHON_VERSION" != "3.7" ] ; then
pytest; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ] ; then pytest; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ] ; then pytest; fi
- cd ..
after_success:
- codecov
deploy:
provider: pypi
user: AxeldeRomblay
password:
secure: l4S5cjkkjhj82j3Tq51/zkBEkjOfSl9xaISu9rmcQNQUbsqp1qrLiKmcMVm0mirNezhTnNdeeCWRyeuvXBNpbRq37KKM6NGScmbAPdCKZeDw6/wDOwjzaMpsnzynq7EiowrgrawwffTa1kP6dgzkG4U/ftjd1jNdNMmOz5MyMnkS2cVv2Uy0o/g7MPQ1hIVAGpoLtnjJ+iGZrQrCWGOr9zp6k003T0xGlS9oEPLM1yid1s1Aeeq8p8Jaee2gGbhpOZ8fySHPcBX2e7TThgoqwfN/wvDzBwko5VPHTaWiVa9FW4zirwyE9EK8LmjAuodF63QOBujO5YTCf1ja5iC5czxZrjNsZCznXmsVqZlyetF2aMofDk++0T0zCmXpMRjivmLV0O/ZSl/HDkMua1TdPuink+FKdGrwCH/IzyeAfT95yVisiRpmgNAhn8/IW/U8v87voquy+YoVL6egSjoB5EyEnzSoojK7qyRPCPmFmKcJHK3aoT3yocwgOSgClqX1gbrYrXAKkXR8lPp7VlZdNKIbKQLu6TILAOVILsAU2MFJbomMAREL/kM9tB3jOj34gKl0qghMOM10BUnWZ3L+MrNamm/0nrnFhlsI8OIVB47ahOnhVZsLk1H2LGZDwBvJTv2gzEG0mUaQaA45/dxJWvR9IZpObEu6T/U/e+uKI+g=
skip_existing: true
skip_cleanup: true
on:
condition: $TRAVIS_OS_NAME != "windows"
repo: AxeldeRomblay/MLBox
branch: master