Skip to content

Commit

Permalink
[MRG] Travis fix (#35)
Browse files Browse the repository at this point in the history
* trying to fix travis file

* changes to travis again

* changes to travis again
  • Loading branch information
tommyod committed Nov 18, 2019
1 parent 8fb8dce commit 976f70e
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,30 +46,30 @@ env:
# If OS X - install Pyton 3 as python3.
# Print the python version, install general requirements and linting
before_install:
- if [ "${TRAVIS_OS_NAME:-}" == "osx" ]; then
- if [ "${TRAVIS_OS_NAME:-}" == "osx" ]; then
brew update;
fi
- if [ "${TRAVIS_OS_NAME:-}" -ne "osx" ]; then
fi
- if [ "${TRAVIS_OS_NAME:-}" -ne "osx" ]; then
sudo apt install libpython3.6-dev;
fi
- $PYTHON --version
- $PIP install -r requirements.txt
- $PIP install pep8>=1.7.1
- $PIP install flake8>=3.5.0
fi
- $PYTHON --version
- $PIP install -r requirements.txt
- $PIP install pep8>=1.7.1
- $PIP install flake8>=3.5.0

# Install the package, create source distribution (worse alternative to wheels)
# Run the tests.
install:
- $PYTHON setup.py develop sdist
- $PYTHON -m pytest KDEpy --doctest-modules --capture=sys
- $PYTHON setup.py develop sdist
- $PYTHON -m pytest KDEpy --doctest-modules --capture=sys

# Linting
script:
- $PYTHON -m flake8 --show-source --ignore=F811,W293,W391,W292,W291,W504,W503 --max-line-length=88 --exclude="*examples.py,testing.py,*kde.py" KDEpy
- $PYTHON -m flake8 --show-source --ignore=F811,W293,W391,W292,W291,W504,W503 --max-line-length=88 --exclude="*examples.py,testing.py,*kde.py" KDEpy

# -------------------- deploy: deploy to PyPI ---------
# -------------------- deploy: deploy to PyPI ---------
deploy:
provider: script
script: . deploy.sh
on:
branch: master
on:
branch: master

0 comments on commit 976f70e

Please sign in to comment.