-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
35 lines (33 loc) · 871 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
31
32
33
34
35
version: 0.2
phases:
install:
runtime-versions:
nodejs: 10
commands:
- echo Installing phase ...
- echo Installing Node 12
- curl -sL https://deb.nodesource.com/setup_12.x | bash -
- apt install -y nodejs
- echo Installing Yarn
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
- apt install --no-install-recommends yarn
pre_build:
commands:
- echo Pre-build phase ...
- yarn
build:
commands:
- echo Build started on `date`
- echo Testing ...
- yarn test:ci
- echo Building ...
- yarn build
post_build:
commands:
- echo Build completed on `date`
artifacts:
files:
- "**/*"
discard-changes: no
base-directory: build