-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
55 lines (45 loc) · 1.83 KB
/
Makefile
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
47
48
49
50
51
52
53
54
55
SHELL:=/bin/bash
ifeq (${TEST_VERSION},)
## This means master of our suite
export TEST_VERSION = d007a0d506a52535c8cd20c0905fa1700f26bcdf
endif
ifeq (${TEST_ENV},)
TEST_ENV=Docker
endif
ifeq (${TEST_REGEX},)
TEST_REGEX = Test
endif
ifeq (${TEST_TAG},)
TEST_TAG = publicbundle
endif
ifeq (${TEST_REPORT_NAME},)
TEST_REPORT_NAME = Codepipes Public Bundle Tests
endif
ifeq (${TEST_AZURE_BUILD_BRANCH},)
TEST_AZURE_BUILD_BRANCH = master
endif
ifeq (${TEST_AZURE_BUILD_URL},)
TEST_AZURE_BUILD_URL = https://dev.azure.com/
endif
ifeq (${TEST_CLEANUP_ALL},)
TEST_CLEANUP_ALL = false
endif
test-docker-public-bundle:
mkdir -p report || true
@echo "\033[32m-- Running test suite \033[0m"
exec &> >(tee -a ${PWD}/report/APIResultPublicBundle.log)
docker run \
--mount type=bind,source=/home/vsts/api/,target=/tmp/cred \
--mount type=bind,source=${PWD}/report,target=/tmp/report \
--env-file .env.tests \
--env GIT_TOKEN=$$GIT_TOKEN \
-i --rm cldcvr/vanguard-api-automation:${TEST_VERSION} ./publicbundle -parallel 5 -defaultOrg -timeout 600000s -testSuiteName='"API Result Public Bundles(codepipes-tutorial)"' -test.run='"${TEST_REGEX}"' --tags='"publicbundle"' -env="${TEST_ENV}" -user="${TEST_USER}" -password="${TEST_PASSWORD}" -gitRef='"${TEST_AZURE_BUILD_BRANCH}"' -azureBuildUrl='"${TEST_AZURE_BUILD_URL}"' -credindex=0 | tee -a ${PWD}/report/APIResultPublicBundle.log
test-docker-cleanup:
mkdir -p report || true
@echo "\033[32m-- Running Cleanup Codepipes \033[0m"
docker run \
--mount type=bind,source=/home/vsts/api/,target=/tmp/cred \
--mount type=bind,source=${PWD}/report,target=/tmp/report \
--env-file .env.tests \
--env GIT_TOKEN=$$GIT_TOKEN \
-i --rm cldcvr/vanguard-api-automation:${TEST_VERSION} ./cleanup -env="${TEST_ENV}" -user="${TEST_USER}" -password="${TEST_PASSWORD}" -timeout 600000s -cleanAll="${TEST_CLEANUP_ALL}"