Skip to content

Commit

Permalink
[FIX] fix pypi upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel DEROMBLAY committed Jun 27, 2019
1 parent ce88e3b commit 86c063f
Showing 1 changed file with 71 additions and 89 deletions.
160 changes: 71 additions & 89 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,102 +1,84 @@
language: python

# Declare all os and version of python to be tested
# The section before install is os specific
matrix:
include:
# Use the built in venv for linux builds
- os: linux
python: "2.7"

- os: linux
python: "3.5"

- os: linux
python: "3.6"

# Use generic language for osx
- os: osx
language: generic
python: "2.7"
before_install:
- brew update
- brew install libomp
- brew upgrade pyenv
- brew install pyenv-virtualenv
- pyenv install 2.7.15
- eval "$(pyenv init -)"
- pyenv virtualenv 2.7.15 venv
- pyenv activate venv

- os: osx
language: generic
python: "3.5"
before_install:
- brew update
- 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 update
- 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

# Use sh language for windows
- 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"

# Common steps to all os
include:
- os: linux
python: '2.7'
- os: linux
python: '3.5'
- os: linux
python: '3.6'
- os: osx
language: generic
python: '2.7'
before_install:
- brew update
- brew install libomp
- brew upgrade pyenv
- brew install pyenv-virtualenv
- pyenv install 2.7.15
- eval "$(pyenv init -)"
- pyenv virtualenv 2.7.15 venv
- pyenv activate venv
- os: osx
language: generic
python: '3.5'
before_install:
- brew update
- 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 update
- 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: 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"
install:
- pip install coverage
- pip install codecov
- pip install -U pytest
- pip install --upgrade setuptools wheel

# Install mlbox and run the tests
- 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.6" ] ; then coverage run -m --source=../mlbox/ pytest; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_PYTHON_VERSION" != "3.6" ] ; then pytest; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ] ; then pytest; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ] ; then pytest; fi
- cd ..

- python setup.py install
- cd tests
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_PYTHON_VERSION" = "3.6" ] ; then
coverage run -m --source=../mlbox/ pytest; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_PYTHON_VERSION" != "3.6" ] ; then
pytest; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ] ; then pytest; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ] ; then pytest; fi
- cd ..
after_success:
- codecov

- codecov
deploy:
provider: pypi
user: AxeldeRomblay
password:
secure: YiAp2gnE2SiBQQZ4gbWEJrFl+Jo381e07viF9Lgo30+mjnCEpMilAZpCl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L6egSjoB5EyEnzSoojK7qyRPCPmFmKcJHK3aoT3yocwgOSgClqX1gbrYrXAKkXR8lPp7VlZdNKIbKQLu6TILAOVILsAU2MFJbomMAREL/kM9tB3jOj34gKl0qghMOM10BUnWZ3L+MrNamm/0nrnFhlsI8OIVB47ahOnhVZsLk1H2LGZDwBvJTv2gzEG0mUaQaA45/dxJWvR9IZpObEu6T/U/e+uKI+g=
skip_existing: true
skip_cleanup: true
on:
distributions: sdist
repo: AxeldeRomblay/MLBox
branch: master
branch: master

0 comments on commit 86c063f

Please sign in to comment.