Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
Comment thread
ace-n marked this conversation as resolved.
reporter-option:
- output=./sponge_log.xml
7 changes: 0 additions & 7 deletions .kokoro/appengine/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,4 @@ build_file: "nodejs-docs-samples/.kokoro/trampoline.sh"
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/nodejs-docs-samples/.kokoro/build.sh"
}

# Export XUnit test results for further analysis
action {
define_artifacts {
regex: "**/all-tests.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
7 changes: 7 additions & 0 deletions .kokoro/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,11 @@ build_file: "nodejs-docs-samples/.kokoro/trampoline.sh"
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/node:8-user"
}

# Export XUnit test results for further analysis
action {
define_artifacts {
regex: "**/sponge_log.xml"
}
}
7 changes: 0 additions & 7 deletions .kokoro/functions/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,4 @@ env_vars: {
env_vars: {
key: "BASE_URL"
value: "http://localhost:8080"
}

# Export XUnit test results for further analysis
action {
define_artifacts {
regex: "**/all-tests.xml"
}
}