Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .kokoro/.mocharc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
reporter: xunit
reporter-option:
- output=./sponge_log.xml
2 changes: 1 addition & 1 deletion .kokoro/appengine/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ env_vars: {
# Export XUnit test results for further analysis
action {
define_artifacts {
regex: "**/all-tests.xml"
regex: "**/sponge_log.xml"
}
}
5 changes: 5 additions & 0 deletions .kokoro/build-with-appengine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ set -e;

export GCLOUD_PROJECT=nodejs-docs-samples-tests

# Activate mocha config
pushd github/nodejs-docs-samples
mv .kokoro/.mocharc.yml .
popd

# Update gcloud
gcloud components update --quiet

Expand Down
5 changes: 5 additions & 0 deletions .kokoro/build-with-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@

set -eo pipefail

# Activate mocha config
pushd github/nodejs-docs-samples
mv .kokoro/.mocharc.yml .
popd

export GOOGLE_CLOUD_PROJECT=nodejs-docs-samples-tests
pushd github/nodejs-docs-samples/${PROJECT}

Expand Down
5 changes: 5 additions & 0 deletions .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ export NODEJS_IOT_RSA_PUBLIC_CERT=${KOKORO_GFILE_DIR}/rsa_cert.pem
export BOT_ACCESS_TOKEN=${KOKORO_GFILE_DIR}/secrets-slack-bot-access-token.txt
export CHANNEL=${KOKORO_GFILE_DIR}/secrets-slack-channel-id.txt

# Activate mocha config
pushd github/nodejs-docs-samples
mv .kokoro/.mocharc.yml .
popd

cd github/nodejs-docs-samples/${PROJECT}

# Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/functions/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ env_vars: {
# Export XUnit test results for further analysis
action {
define_artifacts {
regex: "**/all-tests.xml"
regex: "**/sponge_log.xml"
}
}