-
Notifications
You must be signed in to change notification settings - Fork 428
/
Copy pathbuildspec_regression.yml
41 lines (39 loc) · 1.57 KB
/
buildspec_regression.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
version: 0.2
batch:
fast-fail: false
build-list:
- identifier: multi_svc_app
env:
privileged-mode: true
variables:
TEST_SUITE: multi-svc-app
phases:
install:
commands:
- "cd $HOME/.goenv && git pull --ff-only && cd -"
- "goenv install 1.21.1"
- "goenv global 1.21.1"
- "go install github.com/onsi/ginkgo/v2/ginkgo@latest"
pre_build:
commands:
- printenv DOCKERHUB_TOKEN | docker login --username ${DOCKERHUB_USERNAME} --password-stdin
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-1\n" > /tmp/.aws/config
- printf "[default]\naws_access_key_id=$REGRESSION_TEST_USER_ACCESS_KEY\naws_secret_access_key=$REGRESSION_TEST_USER_SECRET_KEY\n" > /tmp/.aws/credentials
- export AWS_CONFIG_FILE=/tmp/.aws/config
- export AWS_SHARED_CREDENTIALS_FILE=/tmp/.aws/credentials
- make build-regression
- |
if [ -z "$FROM_VERSION" ]; then
FROM_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1)) # Latest tag. Example: "v1.20.0".
fi
- wget -q https://ecs-cli-v2-release.s3.amazonaws.com/copilot-linux-${FROM_VERSION}
- chmod +x ./copilot-linux-${FROM_VERSION}
- export REGRESSION_TEST_FROM_PATH=../../copilot-linux-${FROM_VERSION}
- export REGRESSION_TEST_TO_PATH=../../bin/local/copilot-linux-amd64
- cd regression/${TEST_SUITE} && ginkgo -v -r -noColor --timeout=1h30m --fail-fast