Skip to content

Commit 0905f8c

Browse files
authored
chore: add buildspec.yml from CodeBuild job (#3152)
1 parent bda2ee7 commit 0905f8c

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "CI",
4+
"description": "add buildspec.yml from CodeBuild job"
5+
}

buildspec.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 0.2
2+
3+
env:
4+
variables:
5+
AWS_REGION: "us-west-2"
6+
NODE_PATH: "/root/.nvm/v8.11.3/lib/node_modules"
7+
PATH: "/root/.nvm/versions/node/v8.11.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
8+
9+
phases:
10+
pre_build:
11+
commands:
12+
- echo use node 8.11.3
13+
- export NVM_DIR=~/.nvm && source ~/.nvm/nvm.sh && nvm install 8.11.3
14+
- echo use npm 3.10.10
15+
- npm install -g [email protected]
16+
- echo Install npm dependencies
17+
- npm install
18+
- gem install rake
19+
build:
20+
commands:
21+
- echo Running Test
22+
- npm run test

0 commit comments

Comments
 (0)