-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuildspec.yml
More file actions
44 lines (40 loc) · 1.33 KB
/
buildspec.yml
File metadata and controls
44 lines (40 loc) · 1.33 KB
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
36
37
38
39
40
41
42
version: 0.2
env:
variables:
DOCKER_COMPOSE_VERSION: "1.18.0"
phases:
install:
commands:
- sudo apt-get update
- sudo apt-get install zip bc
- sudo curl -o /usr/local/bin/jq -L https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 && sudo chmod +x /usr/local/bin/jq
- curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
- sudo apt-get install -y nodejs
- sudo npm cache clean --force
- sudo npm install -g n
- sudo n stable
- sudo ln -sf /usr/local/bin/node /usr/bin/node
- sudo apt-get purge -y nodejs
- npm update -g npm
- npm -g install --unsafe-perm aws-sam-local
- python -m venv .
- . bin/activate
- pip install --upgrade pip
- pip install --upgrade awscli
- curl -L "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose
- git clone https://github.com/sstephenson/bats.git
- cd bats
- sudo ./install.sh /usr/local
- cd ../
pre_build:
commands:
- make install
- make localstack-up
build:
commands:
- make test-unit
- make test-integ
post_build:
commands:
- make upload env=$ENV
- make deploy env=$ENV