-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add buildspec.yml from CodeBuild job (#3152)
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"type": "feature", | ||
"category": "CI", | ||
"description": "add buildspec.yml from CodeBuild job" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: 0.2 | ||
|
||
env: | ||
variables: | ||
AWS_REGION: "us-west-2" | ||
NODE_PATH: "/root/.nvm/v8.11.3/lib/node_modules" | ||
PATH: "/root/.nvm/versions/node/v8.11.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||
|
||
phases: | ||
pre_build: | ||
commands: | ||
- echo use node 8.11.3 | ||
- export NVM_DIR=~/.nvm && source ~/.nvm/nvm.sh && nvm install 8.11.3 | ||
- echo use npm 3.10.10 | ||
- npm install -g npm@3.10.10 | ||
- echo Install npm dependencies | ||
- npm install | ||
- gem install rake | ||
build: | ||
commands: | ||
- echo Running Test | ||
- npm run test |