Repository navigation
Create .travis.yml #2
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
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| conditions: v1 | ||
|
|
||
| git: | ||
| depth: false | ||
|
|
||
| language: python | ||
|
|
||
| dist: xenial | ||
| cache: pip | ||
|
|
||
| before_install: | ||
| - &install-flit >- | ||
| pip install --upgrade pip flit | ||
|
|
||
| .mixtures: | ||
| - &run-if-tagged | ||
| if: tag IS present | ||
| - &run-if-cherry-picker | ||
| if: tag =~ ^cherry\-picker\-v\d+\.\d+\.\d+$ | ||
| - &run-if-cherry-picker-or-untagged | ||
| if: tag IS NOT present OR tag =~ ^cherry\-picker\-v\d+\.\d+\.\d+$ | ||
| - &base-3_7 | ||
| dist: xenial | ||
| python: "3.7" | ||
| - &install-and-test-cherry-picker | ||
| <<: *run-if-cherry-picker-or-untagged | ||
| env: | ||
| TARGET_PKG: cherry_picker | ||
| install: | ||
| - flit install | ||
| script: | ||
| - pytest cherry_picker/test.py -v | ||
| - &deploy-base | ||
| stage: Publish dists to PYPI | ||
| <<: *run-if-tagged | ||
| python: "3.6" | ||
| script: | ||
| - flit build | ||
| before_deploy: | ||
| # Add an empty setup.py stub, because pypi provider always calls it | ||
| - touch setup.py | ||
| deploy: &deployment-config | ||
| provider: pypi | ||
| # `skip-cleanup: true` is required to preserve binary wheel and sdist, | ||
| # built by during `install` step above. | ||
| skip-cleanup: true | ||
| # `skip-existing: true` is required to skip uploading dists, already | ||
| # present in PyPI instead of failing the whole process. | ||
| # This happenes when other CI (AppVeyor etc.) has already uploaded | ||
| # the very same dist (usually sdist). | ||
| skip-existing: true | ||
| user: &pypi-user core-workflow | ||
| password: &pypi-password | ||
| # Encrypt with `travis encrypt -r python/core-workflow --org` while using travis-ci.org; | ||
| # change to `travis encrypt -r python/core-workflow --api-endpoint 'https://api.travis-ci.com/'` | ||
| # upon switch to __free__ travis-ci.com: | ||
| secure: "ec2BNgqhpXEY2mdNCmfs+lfufIpMAyvOMLDPyikJBwTkmEAQWEmBxNPt67vnun6ODKVuneYYvZCxnpcvASii/2DoBomVhWCVqmFQk888ehG31gKBhcRfTYePZ9B/1GNLchj+Z53eTJX3LVZBur6eICK1DxmgjHKLFSqYKCdxmuw+S8ethDzDE6cX5ce6D2+KDBMN2tUc1C9t15Q9sk8EgElY1JwRaiJ28uZsNfZQcP3rkusbDYPK5mFFJIv6xgEQbA31EvHU9/zvHYf7KwtkkgQzV4wN+FCr/ekGp9T8YneFSrioCY6nGznzsHcKXJsUuJEKBvjwOxy26/RfO/O+0cN6b3fGmI9wQVAnhbd/WszdN0/RmOtwXcJS/uxDTZSPcrXTKRqWaESKt9tGDXeFKLyrpi5Rc9wnxonVzwAOKZSody+ADG6EfLNsVJZt+RM3nV9aOgS20pCctsgqgW+qYBkmpYuAbIyaZRe3oi6lzYWXfZcwN2JIgiy7LVNn+JBPmNT3W21oR13TA7GDy/sWec9Odds4uZXUqfpkdVl+9/TzugH1VtgzhOyC/nU7y/m0Uo5q4QYTkAEZUrYP1N/FEUnvwLRHsqUzWk5beJtycOsHoOj7O9KG1g9gWfBxjfN3N5D2n1P7Xvf4dwcKc+mBVmq6tjAQYgqSdYttKrQPxrw=" | ||
| on: | ||
| tags: true | ||
| all_branches: true | ||
|
|
||
| jobs: | ||
| include: | ||
| - python: "3.6" | ||
| <<: *install-and-test-cherry-picker | ||
| - <<: *base-3_7 | ||
| <<: *install-and-test-cherry-picker | ||
| - python: "nightly" # currently, it's 3.8-dev | ||
| <<: *install-and-test-cherry-picker | ||
| - os: windows | ||
| language: sh | ||
| python: 3.7 | ||
| before_install: | ||
| - choco install python --version 3.7 | ||
| - python -m pip install --upgrade pip wheel | ||
| - *install-flit | ||
| <<: *install-and-test-cherry-picker | ||
| env: | ||
| PATH: >- | ||
| /c/Python37:/c/Python37/Scripts:$PATH | ||
| TARGET_PKG: cherry_picker | ||
|
|
||
| - <<: *deploy-base | ||
| <<: *run-if-cherry-picker | ||
| env: | ||
| TARGET_PKG: cherry_picker | ||
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.
This can be hugely simplified now
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.
Can you suggest how? I'm not actually very well-versed in config file like this 😅
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.
Just use that other anchor without a regex