Skip to content

Commit

Permalink
chore: add buildspec.yml from CodeBuild job (#3152)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Mar 16, 2020
1 parent bda2ee7 commit 0905f8c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/next-release/feature-CI-84f81f17.json
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"
}
22 changes: 22 additions & 0 deletions buildspec.yml
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

0 comments on commit 0905f8c

Please sign in to comment.