-
Notifications
You must be signed in to change notification settings - Fork 754
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
Upgrade ci to support Python 3 #350
Conversation
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.
LGTM, thanks!
Codecov Report
@@ Coverage Diff @@
## master #350 +/- ##
=========================================
Coverage ? 84.62%
=========================================
Files ? 37
Lines ? 852
Branches ? 76
=========================================
Hits ? 721
Misses ? 111
Partials ? 20 |
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.
nice travis.yml refactoring! Added comment based on my last week learnings 😄
envlist = | ||
reboot_required | ||
py27-reboot_required | ||
flake8 | ||
|
||
[testenv] |
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.
let's add -v
to pytest
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.
Also let's add platform = linux|darwin|win32
for [flake8]
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.
exclude = .eggs,.tox,build
?
|
||
[testenv] | ||
platform = linux|darwin | ||
deps = | ||
datadog-checks-base[deps] | ||
-rrequirements-dev.txt | ||
|
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.
👍
envlist = unit, integration, flake8 | ||
basepython = py37 | ||
envlist = | ||
py27-{unit,integration} |
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.
py{27,37}
?
envlist = | ||
reboot_required | ||
py27-reboot_required |
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.
py{27,37}
?
envlist = | ||
sortdb | ||
py27-sortdb | ||
flake8 | ||
|
||
[testenv] |
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.
exclude = .eggs,.tox,build
and platform = linux|darwin|win32
for [flake8]
envlist = | ||
sortdb | ||
py27-sortdb |
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.
py{27,37}
envlist = | ||
unit, | ||
integration, | ||
py27-{unit,integration} |
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.
same as above?
envlist = | ||
unit, | ||
integration, | ||
py27-{unit,integration} | ||
flake8 | ||
|
||
[testenv] | ||
platform = linux|darwin |
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.
let's run flake on win32 as well here
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.
and let's exclude build
as well
I'll address individual Python 3 & platform compatibility in separate PRs |
Motivation
DataDog/integrations-core#3243
Also fixed flake8 as was done in ^