-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Refactor noxfile #686
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
Refactor noxfile #686
Conversation
Change-Id: Ica205635543f07cc1b8f5a619ab58576fed5da30
This refactor isolates every samples' run from all others, each sample now has an isolated virtualenv. This will make complete builds slower, but incremental builds shouldn't suffer. This will also make it easier for us to add user journey tests. |
This is used when running the linter to insure that import order is | ||
properly checked. | ||
""" | ||
return [ |
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.
suggest breaking out nested comprehension into two lines, slightly hard to follow
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.
Done
requirements_files.append('./testing/requirements-dev.in') | ||
print('The following samples do not have tests:') | ||
for sample in set(ALL_SAMPLE_DIRECTORIES) - set(ALL_TESTED_SAMPLES): | ||
print('*', sample) |
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 is intentional? Expected something like print('*{}').format(sample) .
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.
Done
lgtm |
Change-Id: I06a4ec7a542eb88ca367fd1936fa499aac4045ff
Merging, can address other comments in follow-ups. |
@@ -6,7 +6,7 @@ if [[ $TRAVIS_SECURE_ENV_VARS == "true" ]]; then | |||
source ${TRAVIS_BUILD_DIR}/testing/test-env.sh; | |||
export GOOGLE_APPLICATION_CREDENTIALS=${TRAVIS_BUILD_DIR}/testing/service-account.json | |||
export GOOGLE_CLIENT_SECRETS=${TRAVIS_BUILD_DIR}/testing/client-secrets.json | |||
nox --stop-on-first-error -s lint travis; | |||
nox --stop-on-first-error -s lint gae py35; |
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.
Not testing py27 anymore?
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 weren't before either.
No description provided.