-
Notifications
You must be signed in to change notification settings - Fork 537
Expand file tree
/
Copy pathbuildspec.yml
More file actions
30 lines (29 loc) · 764 Bytes
/
buildspec.yml
File metadata and controls
30 lines (29 loc) · 764 Bytes
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
# Do not change version. This is the version of AWS buildspec, not the version of your buildspec file.
version: 0.2
phases:
install:
runtime-versions:
nodejs: 10
commands:
- echo Installing Mocha...
- npm install -g mocha
pre_build:
commands:
- echo Installing source NPM dependencies...
- npm install
build:
commands:
- echo Build started on `date`
- echo Compiling the Node.js code
- mocha test.js
- echo "Environment variable SAMPLE_ENV_VAR is $SAMPLE_ENV_VAR"
post_build:
commands:
- echo Build completed on `date`
artifacts:
files:
- app.js
- index.html
- package.json
- node_modules/async/*
- node_modules/lodash/*