forked from confirmedcode/Admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
30 lines (29 loc) · 840 Bytes
/
buildspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
version: 0.2
phases:
install:
commands:
- echo Installing modules...
- npm install --global mocha
pre_build:
commands:
- echo Setup Git to use AWS IAM Instance Profile
- export HOME=/root
- git config --global credential.helper '!aws codecommit credential-helper $@'
- git config --global credential.UseHttpPath true
- echo Installing source NPM dependencies...
- mkdir -p logs
- cd code
- echo Installing shared with the right region...
- "npm install --save git+https://git-codecommit.$AWS_REGION.amazonaws.com/v1/repos/$ENVIRONMENT-Shared#$GIT_BRANCH"
- npm install
build:
commands:
- echo Build started
- echo Running tests...
- npm test
post_build:
commands:
- echo Build completed
artifacts:
files:
- '**/*'