-
Notifications
You must be signed in to change notification settings - Fork 770
Check that API package installs #34
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
Changes from all commits
493d179
5c26a0c
dfe87df
9ff0101
15b30bc
9e5757e
a8e416d
085dc48
bd81da1
b2393dd
4870a2a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ install: | |
| - pip install tox-travis | ||
|
|
||
| script: | ||
| - tox | ||
| - (cd opentelemetry-api; tox) | ||
|
|
||
| branches: | ||
| only: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| [tox] | ||
|
Member
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. Curious, given we will have other packages (e.g. opentelemetry-sdk) under this repo, do we want to have a single global tox, or a tox file per package?
Member
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. I don't know what best practises are here, but I'd imagine we will have quite some code/config duplication with multiple toxfiles 🤔 I think OpenCensus-python used nox, maybe that tool is better in this regard?
Member
Author
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. From a conversation with @reyang: nox gives us a combined coverage report if we have branches that depend on python version, but tox made it easier to run tests in parallel on travis. We'll stick with tox and burn the coverage bridge when we come to it. I don't know whether it'll be easier to have one or multiple tox files. It does make it easier now to have it under |
||
| skipsdist = True | ||
| envlist = py{34,35,36,37}-unit, py37-lint, py37-mypy | ||
|
|
||
| [testenv] | ||
| deps = | ||
| py{34,35,36,37}-unit: -e . | ||
| py37-lint: pylint | ||
| py37-mypy: mypy | ||
|
|
||
| commands = | ||
| py{34,35,36,37}-unit: python -c "from opentelemetry import trace" | ||
| py37-lint: pylint opentelemetry/ | ||
| py37-mypy: mypy opentelemetry/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,14 @@ | ||
| [tox] | ||
| skipsdist = True | ||
| envlist = py37-lint, py37-mypy | ||
| envlist = py{34,35,36,37}-unit, py37-lint, py37-mypy | ||
|
Contributor
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. If there is going to be multiple tox files, is the idea to have a different build per package? I think we need to define what makes sense in the project structure to "build differently".
Member
Author
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. Still TBD, I don't have an opinion on this. |
||
|
|
||
| [testenv] | ||
| deps = | ||
| py{34,35,36,37}-unit: -e . | ||
| py37-lint: pylint | ||
| py37-mypy: mypy | ||
|
|
||
| commands = | ||
| py{34,35,36,37}-unit: python -c "from opentelemetry import trace" | ||
| py37-lint: pylint opentelemetry-api/opentelemetry/ | ||
| py37-mypy: mypy opentelemetry-api/opentelemetry/ | ||
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 wondering, is this part of the WIP or are we only building what is inside the api package?
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.
We'll eventually build everything, for now only API has code to build.