Skip to content

Commit 86c063f

Browse files
author
Axel DEROMBLAY
committed
[FIX] fix pypi upload
1 parent ce88e3b commit 86c063f

File tree

1 file changed

+71
-89
lines changed

1 file changed

+71
-89
lines changed

.travis.yml

Lines changed: 71 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,84 @@
11
language: python
2-
3-
# Declare all os and version of python to be tested
4-
# The section before install is os specific
52
matrix:
6-
include:
7-
# Use the built in venv for linux builds
8-
- os: linux
9-
python: "2.7"
10-
11-
- os: linux
12-
python: "3.5"
13-
14-
- os: linux
15-
python: "3.6"
16-
17-
# Use generic language for osx
18-
- os: osx
19-
language: generic
20-
python: "2.7"
21-
before_install:
22-
- brew update
23-
- brew install libomp
24-
- brew upgrade pyenv
25-
- brew install pyenv-virtualenv
26-
- pyenv install 2.7.15
27-
- eval "$(pyenv init -)"
28-
- pyenv virtualenv 2.7.15 venv
29-
- pyenv activate venv
30-
31-
- os: osx
32-
language: generic
33-
python: "3.5"
34-
before_install:
35-
- brew update
36-
- brew install libomp
37-
- brew upgrade pyenv
38-
- brew install pyenv-virtualenv
39-
- pyenv install 3.5.6
40-
- eval "$(pyenv init -)"
41-
- pyenv virtualenv 3.5.6 venv
42-
- pyenv activate venv
43-
44-
- os: osx
45-
language: generic
46-
python: "3.6"
47-
before_install:
48-
- brew update
49-
- brew install libomp
50-
- brew upgrade pyenv
51-
- brew install pyenv-virtualenv
52-
- pyenv install 3.6.7
53-
- eval "$(pyenv init -)"
54-
- pyenv virtualenv 3.6.7 venv
55-
- pyenv activate venv
56-
57-
# Use sh language for windows
58-
- os: windows
59-
language: sh
60-
python: "3.5"
61-
before_install:
62-
- choco install python --version 3.5.4
63-
- export PATH="/c/Python35:/c/Python35/Scripts:$PATH"
64-
65-
- os: windows
66-
language: sh
67-
python: "3.6"
68-
before_install:
69-
- choco install python --version 3.6.7
70-
- export PATH="/c/Python36:/c/Python36/Scripts:$PATH"
71-
72-
# Common steps to all os
3+
include:
4+
- os: linux
5+
python: '2.7'
6+
- os: linux
7+
python: '3.5'
8+
- os: linux
9+
python: '3.6'
10+
- os: osx
11+
language: generic
12+
python: '2.7'
13+
before_install:
14+
- brew update
15+
- brew install libomp
16+
- brew upgrade pyenv
17+
- brew install pyenv-virtualenv
18+
- pyenv install 2.7.15
19+
- eval "$(pyenv init -)"
20+
- pyenv virtualenv 2.7.15 venv
21+
- pyenv activate venv
22+
- os: osx
23+
language: generic
24+
python: '3.5'
25+
before_install:
26+
- brew update
27+
- brew install libomp
28+
- brew upgrade pyenv
29+
- brew install pyenv-virtualenv
30+
- pyenv install 3.5.6
31+
- eval "$(pyenv init -)"
32+
- pyenv virtualenv 3.5.6 venv
33+
- pyenv activate venv
34+
- os: osx
35+
language: generic
36+
python: '3.6'
37+
before_install:
38+
- brew update
39+
- brew install libomp
40+
- brew upgrade pyenv
41+
- brew install pyenv-virtualenv
42+
- pyenv install 3.6.7
43+
- eval "$(pyenv init -)"
44+
- pyenv virtualenv 3.6.7 venv
45+
- pyenv activate venv
46+
- os: windows
47+
language: sh
48+
python: '3.5'
49+
before_install:
50+
- choco install python --version 3.5.4
51+
- export PATH="/c/Python35:/c/Python35/Scripts:$PATH"
52+
- os: windows
53+
language: sh
54+
python: '3.6'
55+
before_install:
56+
- choco install python --version 3.6.7
57+
- export PATH="/c/Python36:/c/Python36/Scripts:$PATH"
7358
install:
74-
- pip install coverage
75-
- pip install codecov
76-
- pip install -U pytest
77-
- pip install --upgrade setuptools wheel
78-
79-
# Install mlbox and run the tests
59+
- pip install coverage
60+
- pip install codecov
61+
- pip install -U pytest
62+
- pip install --upgrade setuptools wheel
8063
script:
81-
- python setup.py install
82-
- cd tests
83-
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_PYTHON_VERSION" = "3.6" ] ; then coverage run -m --source=../mlbox/ pytest; fi
84-
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_PYTHON_VERSION" != "3.6" ] ; then pytest; fi
85-
- if [ "$TRAVIS_OS_NAME" = "osx" ] ; then pytest; fi
86-
- if [ "$TRAVIS_OS_NAME" = "windows" ] ; then pytest; fi
87-
- cd ..
88-
64+
- python setup.py install
65+
- cd tests
66+
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_PYTHON_VERSION" = "3.6" ] ; then
67+
coverage run -m --source=../mlbox/ pytest; fi
68+
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_PYTHON_VERSION" != "3.6" ] ; then
69+
pytest; fi
70+
- if [ "$TRAVIS_OS_NAME" = "osx" ] ; then pytest; fi
71+
- if [ "$TRAVIS_OS_NAME" = "windows" ] ; then pytest; fi
72+
- cd ..
8973
after_success:
90-
- codecov
91-
74+
- codecov
9275
deploy:
9376
provider: pypi
9477
user: AxeldeRomblay
9578
password:
96-
secure: YiAp2gnE2SiBQQZ4gbWEJrFl+Jo381e07viF9Lgo30+mjnCEpMilAZpCl9MuzslOkXyFCv/U9JNnj9+yGtMcxJQE+82E3eoqupgoMQeGZuWIMN9cRNemxZWgOAwrzslfqEYWvMVdNzIayFYAw6HUgmNI5sHiefX2JjFA7Y0MYlL0SZBjeqUESqpjTHIS0nRTCKpv77XKo/SASJsqkpYg8OgnYgKWKvxpols/bZDwmAwy2j0izuyNAY9ASJx5awg9x/bJnn7IzvO8w+j/iQTQjs5CIa1NBW77Naqplxk1rlivIO3+3rT4QJG+xRacJHa1vLInATCcUVpbhzk/NbOPUxLXpxX6XUPDhUysR1sQbaYBbBOdLOnTAmKBv5WozLzXDUxO/3xwUNUB5+JhMikjOWiwA6Q9pJ7q/nsDMRoTcXrjN/jqMDMQ+CU7h7QBIZFoekDO2hEmWRkcgndbgzPcaTmX8AnjoZCvayYvdge47199feXkTUv+Gx68kInYuj+p3m6He36tJegCnsiAdc2eOzbPswt7/KVBbvbIfRaRj+5LtH69ozn1xpEJJOisiJnF9y0ysB00U4B4bE1kGGmxQeMI6f8Gp33wzvYYUrmB+5AESBzr7Mk4Yfc0Y36vA6NilIj7bK4WmTsWkCmmzazGOwgKi1zWC51W/SjNXyWkc=
79+
secure: l4S5cjkkjhj82j3Tq51/zkBEkjOfSl9xaISu9rmcQNQUbsqp1qrLiKmcMVm0mirNezhTnNdeeCWRyeuvXBNpbRq37KKM6NGScmbAPdCKZeDw6/wDOwjzaMpsnzynq7EiowrgrawwffTa1kP6dgzkG4U/ftjd1jNdNMmOz5MyMnkS2cVv2Uy0o/g7MPQ1hIVAGpoLtnjJ+iGZrQrCWGOr9zp6k003T0xGlS9oEPLM1yid1s1Aeeq8p8Jaee2gGbhpOZ8fySHPcBX2e7TThgoqwfN/wvDzBwko5VPHTaWiVa9FW4zirwyE9EK8LmjAuodF63QOBujO5YTCf1ja5iC5czxZrjNsZCznXmsVqZlyetF2aMofDk++0T0zCmXpMRjivmLV0O/ZSl/HDkMua1TdPuink+FKdGrwCH/IzyeAfT95yVisiRpmgNAhn8/IW/U8v87voquy+YoVL6egSjoB5EyEnzSoojK7qyRPCPmFmKcJHK3aoT3yocwgOSgClqX1gbrYrXAKkXR8lPp7VlZdNKIbKQLu6TILAOVILsAU2MFJbomMAREL/kM9tB3jOj34gKl0qghMOM10BUnWZ3L+MrNamm/0nrnFhlsI8OIVB47ahOnhVZsLk1H2LGZDwBvJTv2gzEG0mUaQaA45/dxJWvR9IZpObEu6T/U/e+uKI+g=
9780
skip_existing: true
9881
skip_cleanup: true
9982
on:
100-
distributions: sdist
10183
repo: AxeldeRomblay/MLBox
102-
branch: master
84+
branch: master

0 commit comments

Comments
 (0)