-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Ajedi32/appveyor
Run tests in AppVeyor
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
environment: | ||
matrix: | ||
# Pre-installed Python versions | ||
# See: https://www.appveyor.com/docs/windows-images-software/#python | ||
# Note: Right now, only 3.7 is used since other versions are ignored by | ||
# Pipenv. | ||
- PYTHON: C:\Python37-x64 | ||
|
||
init: | ||
- ps: $env:PATH = "$env:PYTHON;" + $env:PATH | ||
- ps: $PYTHON_SITE_SCRIPTS = Join-Path -Path $(Split-Path -Path $(python -m site --user-site) -Parent) -ChildPath Scripts | ||
- ps: $PYTHON_SYSTEM_SCRIPTS = Join-Path -Path $env:PYTHON -ChildPath Scripts | ||
- ps: $env:PATH = "$PYTHON_SITE_SCRIPTS;$PYTHON_SYSTEM_SCRIPTS;" + $env:PATH | ||
|
||
# Debug info | ||
- 'echo "Python directory: %PYTHON%"' | ||
- 'echo "PATH: %PATH%"' | ||
- python --version | ||
- pip --version | ||
|
||
install: | ||
- pip install --user pipenv | ||
- pipenv install --dev | ||
|
||
build: false | ||
|
||
test_script: | ||
# Automated tests | ||
- pipenv run pytest tests/ | ||
|
||
# Test build | ||
- pipenv run python setup.py sdist bdist_wheel | ||
|
||
# Test doc generation | ||
- pipenv run sphinx-build docs/source/ docs/build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters