Skip to content

Commit

Permalink
Add presubmit task for linting (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhinkel authored Sep 19, 2019
1 parent 8069e31 commit 43abcee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
8 changes: 1 addition & 7 deletions .kokoro/presubmit/bookshelf.sh → .kokoro/presubmit/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
npm run lint

0 comments on commit 43abcee

Please sign in to comment.