-
Notifications
You must be signed in to change notification settings - Fork 26
MAINT Configure Windows CI using AppVeyor #258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jacksonllee
merged 21 commits into
civisanalytics:master
from
jacksonllee:set-up-windows-continuous-integration
Jun 14, 2018
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
e5b4ac1
MAINT Configure Windows CI using AppVeyor
jacksonlee-civis 6fd020a
MAINT Update the changelog
jacksonlee-civis e35f0fd
TST NamedTemporaryFile -> TemporaryDirectory etc for Windows compatib…
jacksonlee-civis 444da8b
TST Use TemporaryDirectory from compat module
jacksonlee-civis d28d6aa
TST Avoid accessing 'name' attr of temp file objects
jacksonlee-civis 353ef3d
STY Remove unused imports and vars to appease flake8
jacksonlee-civis c02f8c0
TST Close the temp files explicitly
jacksonlee-civis 35a92b0
REF Switch to context managers
jacksonlee-civis a211a3f
TST More time for polling call count test
jacksonlee-civis c142274
TST Relax the polling call count test
jacksonlee-civis c93b8f2
TST Adjust sleep time in poller call count test
jacksonlee-civis 4be1616
DEP No feather-format on Windows when python version < 3.5
jacksonlee-civis b7d8fb7
TST pytest skipif needs a reason like a human
jacksonlee-civis 298e176
TST Use a distinct archive name in zipfile testing
jacksonlee-civis 8474aac
TST Remove skipif for Windows
jacksonlee-civis 9fbb4be
STY Remove unused import #flake8
jacksonlee-civis 2f2413d
TST uuid is not needed
jacksonlee-civis e294c36
TST flushing not needed when existing file context manager
jacksonlee-civis 80fb27d
Merge branch 'master' into set-up-windows-continuous-integration
jacksonllee 6bed89f
MAINT Update the changelog
jacksonlee-civis 46c5fca
MAINT Fix PR number in changelog
jacksonlee-civis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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,39 @@ | ||
build: false # Not a .NET project | ||
|
||
|
||
environment: | ||
# For python environments: https://www.appveyor.com/docs/build-environment/#python | ||
matrix: | ||
- PYTHON: "C:\\Python27-x64" | ||
PYTHON_VERSION: "2.7.15" | ||
PYTHON_ARCH: "64" | ||
|
||
- PYTHON: "C:\\Python34-x64" | ||
PYTHON_VERSION: "3.4.4" | ||
PYTHON_ARCH: "64" | ||
|
||
- PYTHON: "C:\\Python35-x64" | ||
PYTHON_VERSION: "3.5.3" | ||
PYTHON_ARCH: "64" | ||
|
||
- PYTHON: "C:\\Python36-x64" | ||
PYTHON_VERSION: "3.6.5" | ||
PYTHON_ARCH: "64" | ||
|
||
# Environmental variables | ||
CIVIS_API_KEY: "FOOBAR" | ||
|
||
|
||
init: | ||
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%" | ||
|
||
|
||
install: | ||
- "%PYTHON%\\python.exe -m pip install --upgrade pip setuptools" | ||
- "%PYTHON%\\python.exe -m pip install -r dev-requirements.txt" | ||
- "%PYTHON%\\python.exe -m pip install -e ." | ||
|
||
|
||
test_script: | ||
- "%PYTHON%\\Scripts\\flake8.exe civis" | ||
- "%PYTHON%\\Scripts\\pytest.exe -rxXs --cov civis" |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ vcrpy>=1.11.0,<=1.11.99 | |
vcrpy-unittest==0.1.6 | ||
sphinx_rtd_theme>=0.2.4,<1.0.0 | ||
numpydoc>=0.7.0,<1.0.0 | ||
feather-format | ||
feather-format; sys_platform != 'win32' or python_version >= '3.5' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
numpy | ||
pandas; python_version >= '3.5' | ||
pandas<0.21; python_version == '3.4' | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because now we have different execution environments for builds (Circle CI versus AppVeyor), this test has become a little unstable (see this test failure due to such indeterminancy). Given
polling_internal=0.01
(set just a few lines above, viaPollableResult
), sleeping 0.02s gives a little more time for at least one poller call count.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was a little unstable in the Linux tests, to be honest. Hopefully this change makes life better for everyone. Thank you!