forked from aws/copilot-cli
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec-e2e.yml
46 lines (44 loc) · 1.7 KB
/
buildspec-e2e.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
36
37
38
39
40
41
42
43
44
45
46
version: 0.2
batch:
fast-fail: false
build-matrix:
static:
env:
privileged-mode: true
type: LINUX_CONTAINER
dynamic:
env:
compute-type:
- BUILD_GENERAL1_LARGE
image:
- aws/codebuild/standard:4.0
variables:
# We increase the number of VPCs/region limit to 15 from 5 in our e2e tests accounts
# to accommodate running them in parallel.
# If TEST_SUITE goes above 15 e2e tests the limits and this comment should be updated.
TEST_SUITE:
- addons
- customized-env
- init
- multi-env-app
- multi-svc-app
- root
- sidecars
- task
phases:
install:
runtime-versions:
golang: 1.14
nodejs: 10
build:
commands:
- cd $CODEBUILD_SRC_DIR
- export GOPATH=/go
- rm -rf cf-custom-resources/node_modules
- mkdir -p /tmp/.aws
- printf "[default]\nregion = us-west-2\n[profile e2etestenv]\nregion=us-west-1\n[profile e2eprodenv]\nregion=us-east-1\n" > /tmp/.aws/config
- printf "[default]\naws_access_key_id=$E2E_USER_1_ACCESS_KEY\naws_secret_access_key=$E2E_USER_1_SECRET_KEY\n\n[e2etestenv]\naws_access_key_id=$E2E_USER_2_ACCESS_KEY\naws_secret_access_key=$E2E_USER_2_SECRET_KEY\n\n[e2eprodenv]\naws_access_key_id=$E2E_USER_3_ACCESS_KEY\naws_secret_access_key=$E2E_USER_3_SECRET_KEY\n" > /tmp/.aws/credentials
- sed -i -e '$s/$/ --noColor/' e2e/e2e.sh
- make build-e2e
- docker build -t copilot-cli/e2e . -f e2e/Dockerfile
- docker run --privileged -v /tmp/.aws:/home/.aws -e "HOME=/home" -e "TEST_SUITE=$TEST_SUITE" copilot-cli/e2e:latest