Skip to content

Commit

Permalink
Travis experimentation 5
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyod committed Aug 31, 2018
1 parent 2bc4b22 commit 06eb776
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ build_script:
- python setup.py develop
- pip install wheel
- pip install --upgrade cibuildwheel
- touch .cibuildwheel
- python -m cibuildwheel --output-dir wheelhouse

test_script:
Expand All @@ -44,6 +43,7 @@ after_test:
- cmd: "echo password: %TWINE_PASSWORD% >> %USERPROFILE%\\.pypirc"
- python setup.py bdist_wheel


on_success:
- pip install twine
- "twine upload wheelhouse\\*.whl --skip-existing"
16 changes: 9 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ matrix:
env:
global:
- CIBW_SKIP="cp27-* cp33-* cp34-* cp35-*"
- CIBW_TEST_REQUIRES=pytest
- CIBW_TEST_COMMAND="python3 -m pytest KDEpy --doctest-modules"
- PIP=pip3
- PYTHON=python3

Expand All @@ -39,20 +41,20 @@ before_install:
brew update;
brew upgrade python;
fi
- "$PYTHON --version"
- "$PIP install -r requirements.txt"
- "$PIP install pep8>=1.7.1"
- "$PIP install flake8>=3.5.0"
- $PYTHON --version
- $PIP install -r requirements.txt
- $PIP install pep8>=1.7.1
- $PIP install flake8>=3.5.0

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

before_script:
- $PYTHON -m flake8 --show-source --ignore=F811,W293,W391,W292,W291 --max-line-length=79 --exclude="*examples.py,
*kde.py" KDEpy

# If a tag was used, build wheels and deply to pypi
# If a tag was used, build wheels and deply to pypi
script:
- echo "$TRAVIS_TAG"
- if [ -n "$TRAVIS_TAG" ]; then
Expand Down

0 comments on commit 06eb776

Please sign in to comment.