-
Notifications
You must be signed in to change notification settings - Fork 241
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
Migrate from Travis to Azure #116
Closed
Closed
Changes from all commits
Commits
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
added Azure Pipelines config
- Loading branch information
commit 6e55a4e32dda3f5de24f62b6a8023ffdee87429d
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,44 @@ | ||
jobs: | ||
- job: Linux | ||
timeoutInMinutes: 120 | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
strategy: | ||
matrix: | ||
Python34: | ||
python.version: 3.4 | ||
Python35: | ||
python.version: 3.5 | ||
Python36: | ||
python.version: 3.6 | ||
Python37: | ||
python.version: 3.7 | ||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
- script: pip install -r requirements-test.txt | ||
displayName: 'Install requirements' | ||
- script: flake8 . | ||
displayName: PEP8 | ||
|
||
# Since we develop a library, we want to make sure that it properly runs | ||
# after installation. We already ran into an issue when some files were | ||
# forgotten to be included in package_data and it was not caught by tests. | ||
|
||
# So first we run unit tests against raw source code and report coverage. | ||
|
||
- script: pytest -v tests/ --cov=m2cgen/ --ignore=tests/e2e/ | ||
displayName: Pytest | ||
# - script: coveralls | ||
# displayName: Coveralls | ||
|
||
# Then we install it as a library, remove source code and run e2e tests. | ||
|
||
- script: python setup.py install | ||
displayName: 'Install package' | ||
- script: rm -rfd m2cgen/ | ||
displayName: 'Remove sources' | ||
- script: pytest -v tests/e2e/ | ||
timeoutInMinutes: 120 | ||
displayName: Pytest |
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ pytest-mock==1.10.0 | |
coveralls==1.5.1 | ||
pytest-cov==2.6.1 | ||
py-mini-racer==0.1.18 | ||
attrs==19.1.0 | ||
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. To fix
error. Refer to pytest-dev/pytest#3280 (comment). |
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.
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.
Should be configured manually (with token):