2019-09-04 08:54:24 +00:00
|
|
|
# appveyor.yml
|
|
|
|
---
|
2019-09-19 16:23:09 +00:00
|
|
|
|
|
|
|
environment:
|
2019-09-23 12:05:28 +00:00
|
|
|
# Encrypted password (more precisely: token) for upload distro to pypy:
|
2019-09-19 16:23:09 +00:00
|
|
|
# The "pypipw" is a custom name.
|
|
|
|
# The original (sensitive) token is generated by the pypi: https://pypi.org/manage/account/token/
|
|
|
|
# The token has encripted by the appveyor: https://ci.appveyor.com/tools/encrypt
|
|
|
|
pypipw:
|
|
|
|
secure: N+tYP6JrVCZ12LX7MUmHYJ8kx07F4A1hXtmEW01RmhrrQBdylIf0SO/eEfW5f4ox3S4xG/lgGSzNlZckvgifrsYeeBkWwoSH5/AJ3SnOJ7HBVojVt2t3bAznS6x3aPT7WDpwGN7piwus9aHSmpKaOzRoEOBKfgHv3aUzb907C0d0Yr12LU/4cIoTAn7jMziifSq45Z50lsQwzYic/VkarxTh+GXuCCm1Mb8F686H8i6Smm1Q1n9BsXowYnzwdrTZSBVOUtpd48Mh9JKgSNhfmQ==
|
|
|
|
testpypipw:
|
|
|
|
secure: CcyBI8e/2LdIT2aYIytTAgR4795DNBDM/ztsz1kqZYYOeNc3zlJWLdYWrnjCHn5W6/ZcAHrsxCdCMHvtr6PIVgBRpl2RR3fk2jKTzKqJJsLW871q30BsE0kws32f1IiqfjVtLn8BUC91IJ2xBBXtOYktf1tCMi3zJMSF9+MIOQKIu298bIRnD1Lc+4lzcSZJOn4I7dOMdzlcCMRqhtO58TGwR/hD+22FHjyWVB8nLL18AO+XXS9lHSOUrH6rD5NYvVFZD68oV/RrCGAjRmfMnw==
|
|
|
|
|
2019-09-04 08:54:24 +00:00
|
|
|
build: off
|
|
|
|
|
|
|
|
test_script:
|
2019-09-19 16:23:09 +00:00
|
|
|
- tox
|
2019-09-05 14:20:37 +00:00
|
|
|
|
|
|
|
after_test:
|
2019-09-19 16:38:21 +00:00
|
|
|
# Upload code coverage results.
|
2019-12-05 16:27:02 +00:00
|
|
|
# https://github.com/codecov/codecov-python/issues/158#issuecomment-514282362
|
2020-02-04 13:07:13 +00:00
|
|
|
- (codecov --no-color -X gcov --file py37-default_coverage.xml --required && codecov --no-color -X gcov --file py37-legacy_wexpect_coverage.xml --required && codecov --no-color -X gcov --file py37-spawn_pipe_coverage.xml --required) || (sleep 30 && codecov --no-color -X gcov --file py37-default_coverage.xml --required && codecov --no-color -X gcov --file py37-legacy_wexpect_coverage.xml --required && codecov --no-color -X gcov --file py37-spawn_pipe_coverage.xml --required)
|
2019-09-19 16:38:21 +00:00
|
|
|
# fill .pypirc file.
|
|
|
|
# pypi
|
2019-09-20 08:51:58 +00:00
|
|
|
- cmd: "echo [pypi] > %USERPROFILE%\\.pypirc"
|
|
|
|
- cmd: "echo repository: https://upload.pypi.org/legacy/ >> %USERPROFILE%\\.pypirc"
|
|
|
|
- cmd: "echo username: __token__ >> %USERPROFILE%\\.pypirc"
|
|
|
|
- cmd: "echo password: %pypipw% >> %USERPROFILE%\\.pypirc"
|
2019-09-19 16:38:21 +00:00
|
|
|
# testpypi
|
2019-09-23 12:11:27 +00:00
|
|
|
- cmd: "echo [testpypi] >> %USERPROFILE%\\.pypirc"
|
2019-09-19 16:23:09 +00:00
|
|
|
- cmd: "echo repository: https://test.pypi.org/legacy/ >> %USERPROFILE%\\.pypirc"
|
|
|
|
- cmd: "echo username: __token__ >> %USERPROFILE%\\.pypirc"
|
|
|
|
- cmd: "echo password: %testpypipw% >> %USERPROFILE%\\.pypirc"
|
2019-09-19 16:38:21 +00:00
|
|
|
|
|
|
|
# Create source distribution.
|
2019-09-19 16:23:09 +00:00
|
|
|
- python -m setup sdist
|
2019-09-19 16:38:21 +00:00
|
|
|
|
2019-10-08 09:32:09 +00:00
|
|
|
# Upload to pypi.
|
2019-10-31 09:14:29 +00:00
|
|
|
# More precisely. The master and release builds will be uploaded to pypi. Test branch will be
|
|
|
|
# uploaded to test-pypi the test builds.
|
2019-10-30 15:42:34 +00:00
|
|
|
# See more at https://stackoverflow.com/a/39155147/2506522
|
2019-10-31 09:39:22 +00:00
|
|
|
|
2019-10-30 15:36:28 +00:00
|
|
|
- IF %APPVEYOR_REPO_BRANCH%==master (
|
|
|
|
twine upload -r pypi dist\\wexpect*.tar.gz
|
2019-10-31 08:03:46 +00:00
|
|
|
)
|
2019-10-31 09:39:22 +00:00
|
|
|
- IF %APPVEYOR_REPO_TAG%==true (
|
2019-10-31 09:14:29 +00:00
|
|
|
twine upload -r pypi dist\\wexpect*.tar.gz
|
|
|
|
)
|
2019-10-31 08:13:30 +00:00
|
|
|
- IF %APPVEYOR_REPO_BRANCH%==test (
|
2019-10-30 15:36:28 +00:00
|
|
|
twine upload -r testpypi dist\\wexpect*.tar.gz
|
2019-10-30 15:42:34 +00:00
|
|
|
)
|
2020-01-28 10:00:23 +00:00
|
|
|
|