Skip to content

Commit

Permalink
Travis experimentation 8
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyod committed Aug 31, 2018
1 parent d3dcd40 commit 5a95373
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
skip_tags: true
clone_depth: 50

# Needed to build Cython
os: Visual Studio 2015

environment:
matrix:
- PY_MAJOR_VER: 3
PYTHON_ARCH: "x86_64"
CIBW_SKIP: cp27-* cp33-* cp34-* cp35-*
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: "python3 -m pytest KDEpy --doctest-modules"


platform:
- x64


build_script:
- ps: Start-FileDownload "https://repo.continuum.io/miniconda/Miniconda$env:PY_MAJOR_VER-latest-Windows-$env:PYTHON_ARCH.exe" C:\Miniconda.exe; echo "Finished downloading miniconda"
- cmd: C:\Miniconda.exe /S /D=C:\Py
Expand All @@ -26,20 +30,15 @@ build_script:
- pip install wheel
- pip install --upgrade cibuildwheel


test_script:
- pytest KDEpy --doctest-modules --doctest-glob="*.rst" --capture=sys


artifacts:
# bdist_wheel puts your built wheel in the dist directory
# this directory is not deleted
- path: wheelhouse\*


after_test:
- cmd: "echo [pypi] > %USERPROFILE%\\.pypirc"
- cmd: "echo username: tommyod >> %USERPROFILE%\\.pypirc"
- cmd: "echo password: %TWINE_PASSWORD% >> %USERPROFILE%\\.pypirc"
- "echo username: tommyod >> %USERPROFILE%\\.pypirc"
- "echo password: %TWINE_PASSWORD% >> %USERPROFILE%\\.pypirc"
- python setup.py bdist_wheel


Expand All @@ -48,5 +47,11 @@ on_success:
if ($env:APPVEYOR_REPO_TAG -eq 'false' -or $env:APPVEYOR_REPO_TAG -eq 'False') {
pip install twine
python -m cibuildwheel --output-dir wheelhouse
"twine upload wheelhouse\\*.whl --skip-existing"
twine upload wheelhouse\\*.whl --skip-existing
}
artifacts:
# bdist_wheel puts your built wheel in the dist directory
# this directory is not deleted
- path: wheelhouse\*

0 comments on commit 5a95373

Please sign in to comment.