Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit ffaa200

Browse files
chore(py_library): add split_system_tests (#76)
Source-Author: Takashi Matsuo <tmatsuo@google.com> Source-Date: Fri Jul 31 16:17:13 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: bfcdbe0da977b2de6c1c0471bb6dc2f1e13bf669 Source-Link: googleapis/synthtool@bfcdbe0
1 parent 8ee5447 commit ffaa200

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.kokoro/build.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,10 @@ python3.6 -m pip uninstall --yes --quiet nox-automation
3636
python3.6 -m pip install --upgrade --quiet nox
3737
python3.6 -m nox --version
3838

39-
python3.6 -m nox
39+
# If NOX_SESSION is set, it only runs the specified session,
40+
# otherwise run all the sessions.
41+
if [[ -n "${NOX_SESSION:-}" ]]; then
42+
python3.6 -m nox -s "${NOX_SESSION:-}"
43+
else
44+
python3.6 -m nox
45+
fi

noxfile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ def system(session):
102102
"""Run the system test suite."""
103103
system_test_path = os.path.join("tests", "system.py")
104104
system_test_folder_path = os.path.join("tests", "system")
105+
106+
# Check the value of `RUN_SYSTEM_TESTS` env var. It defaults to true.
107+
if os.environ.get("RUN_SYSTEM_TESTS", "true") == "false":
108+
session.skip("RUN_SYSTEM_TESTS is set to false, skipping")
105109
# Sanity check: Only run tests if the environment variable is set.
106110
if not os.environ.get("GOOGLE_APPLICATION_CREDENTIALS", ""):
107111
session.skip("Credentials must be set via environment variable")

synth.metadata

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
{
44
"git": {
55
"name": ".",
6-
"remote": "git@github.com:tmatsuo/python-texttospeech.git",
7-
"sha": "f69dc7feaa9933d4b0a734377270122e0843ffbf"
6+
"remote": "https://github.com/googleapis/python-texttospeech.git",
7+
"sha": "8ee544740f18497d9925bcf77e5ab96695503589"
88
}
99
},
1010
{
@@ -19,14 +19,14 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "39b527a39f5cd56d4882b3874fc08eed4756cebe"
22+
"sha": "bfcdbe0da977b2de6c1c0471bb6dc2f1e13bf669"
2323
}
2424
},
2525
{
2626
"git": {
2727
"name": "synthtool",
2828
"remote": "https://github.com/googleapis/synthtool.git",
29-
"sha": "39b527a39f5cd56d4882b3874fc08eed4756cebe"
29+
"sha": "bfcdbe0da977b2de6c1c0471bb6dc2f1e13bf669"
3030
}
3131
}
3232
],

0 commit comments

Comments
 (0)