From 43abcee544efa0311f3b53068f27ea2a97232c8e Mon Sep 17 00:00:00 2001 From: "F. Hinkelmann" Date: Thu, 19 Sep 2019 13:35:29 -0400 Subject: [PATCH] Add presubmit task for linting (#346) --- .kokoro/presubmit/{bookshelf.cfg => lint.cfg} | 2 +- .kokoro/presubmit/{bookshelf.sh => lint.sh} | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) rename .kokoro/presubmit/{bookshelf.cfg => lint.cfg} (75%) rename .kokoro/presubmit/{bookshelf.sh => lint.sh} (79%) diff --git a/.kokoro/presubmit/bookshelf.cfg b/.kokoro/presubmit/lint.cfg similarity index 75% rename from .kokoro/presubmit/bookshelf.cfg rename to .kokoro/presubmit/lint.cfg index 915a3198f..3555c23e0 100644 --- a/.kokoro/presubmit/bookshelf.cfg +++ b/.kokoro/presubmit/lint.cfg @@ -3,5 +3,5 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/nodejs-getting-started env_vars: { key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-getting-started/.kokoro/bookshelf.sh" + value: "github/nodejs-getting-started/.kokoro/lint.sh" } \ No newline at end of file diff --git a/.kokoro/presubmit/bookshelf.sh b/.kokoro/presubmit/lint.sh similarity index 79% rename from .kokoro/presubmit/bookshelf.sh rename to .kokoro/presubmit/lint.sh index aeeeb1eab..1bee91bdb 100644 --- a/.kokoro/presubmit/bookshelf.sh +++ b/.kokoro/presubmit/lint.sh @@ -18,12 +18,6 @@ set -eo pipefail export NPM_CONFIG_PREFIX=/home/node/.npm-global -# Setup service account credentials. -export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json -export GCLOUD_PROJECT=try-firestore - -cd bookshelf - npm install -npm test \ No newline at end of file +npm run lint \ No newline at end of file