-
Notifications
You must be signed in to change notification settings - Fork 17
Improve testing #58
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
Open
webknjaz
wants to merge
11
commits into
atlassian:main
Choose a base branch
from
webknjaz:feature/travis-and-tests-improvements
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Improve testing #58
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c63c776
Unify Travis CI config style + indentation
webknjaz 1267520
Move linting into separate stage in Travis CI
webknjaz fd3bdd4
Move async deps to test-requirements.txt
webknjaz 9fa986b
Bump tested aiohttp version
webknjaz cb23da0
Add typical deployment stage template to Travis CI
webknjaz 5ace608
Upgrade pip+setuptools to modern versions
webknjaz 63e1c3e
Add caching of python distributions
webknjaz 14264de
Bump pbr dependency to v3.1.1
webknjaz 475fd03
Add workaround for unsupprted env markers in test
webknjaz 84bb242
Do not shut up ``pip install`` in Travis CI
webknjaz cbdff69
Merge branch 'master' into feature/travis-and-tests-improvements
webknjaz 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 |
---|---|---|
@@ -1,13 +1,49 @@ | ||
sudo: false | ||
cache: | ||
pip: true | ||
language: python | ||
python: | ||
- "2.7" | ||
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
- 2.7 | ||
- 3.4 | ||
- 3.5 | ||
- &main_python_version 3.6 | ||
before_install: | ||
- pip install -U pip setuptools | ||
install: | ||
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 || $TRAVIS_PYTHON_VERSION == 3.6 ]]; then pip install aiohttp==2.0.6 asynctest==0.10.0; fi | ||
- pip install -q pep8==1.6.2 | ||
- pip install -r test-requirements-py3.txt | ||
script: | ||
- pep8 . | ||
- python setup.py test | ||
- python setup.py test | ||
|
||
jobs: | ||
fast_finish: true | ||
|
||
include: | ||
- stage: &lint_stage_name lint | ||
python: *main_python_version | ||
install: | ||
- pip install pep8==1.6.2 | ||
script: | ||
- pep8 . | ||
|
||
- stage: &deploy_stage_name deploy to PYPI (triggered only for tagged commits) | ||
python: *main_python_version | ||
before_install: [] | ||
script: skip | ||
deploy: | ||
provider: pypi | ||
distribution: sdist bdist_wheel | ||
user: dblack | ||
password: | ||
secure: YOUR_ENCRYPTED_PASSWORD_HERE_https://docs.travis-ci.com/user/encryption-keys/ | ||
# Since commit https://github.com/travis-ci/dpl/commit/90b5e39 | ||
# it is default that Travis PYPI provider has `skip_upload_docs: true` | ||
# set by default. | ||
on: | ||
tags: true | ||
all_branches: true | ||
|
||
stages: | ||
- *lint_stage_name | ||
- test | ||
- name: *deploy_stage_name | ||
if: tag IS present |
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,2 @@ | ||
aiohttp>=2.0,<2.3; python_version>="3.4" | ||
asynctest==0.10.0; 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.
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.
Well probably only off master.
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.
Usually you only tag master.
P.S. You can push to this branch
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.
Do you want me to remove it?
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.
@dbaxa ?
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.
I'll review this pull request again when I get a chance.