File tree 1 file changed +29
-7
lines changed
1 file changed +29
-7
lines changed Original file line number Diff line number Diff line change 1
- version : 2
1
+ version : 2.1
2
+ parameters :
3
+ run_automatedtesting :
4
+ default : false
5
+ type : boolean
6
+ run_basedeployment :
7
+ default : true
8
+ type : boolean
2
9
defaults : &defaults
3
10
docker :
4
11
- image : circleci/python:2.7-stretch-browsers
@@ -39,6 +46,16 @@ builddeploy_steps: &builddeploy_steps
39
46
./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-deployvar
40
47
source buildenvvar
41
48
./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${LOGICAL_ENV}-global-appvar,${LOGICAL_ENV}-${APPNAME}-appvar -i ${APPNAME}
49
+ #testing code changes
50
+ if [[ true ]]; then
51
+ ./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-qa-v1-appvar
52
+ source buildenvvar
53
+ curl --request POST \
54
+ --url https://circleci.com/api/v2/project/github/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pipeline \
55
+ --header "Circle-Token: ${QA_USER_TOKEN}" \
56
+ --header 'content-type: application/json' \
57
+ --data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_automatedtesting":true , "run_basedeployment": false}}'
58
+ fi
42
59
43
60
44
61
jobs :
85
102
workflows :
86
103
version : 2
87
104
build :
105
+ when : << pipeline.parameters.run_basedeployment >>
88
106
jobs :
89
107
# Development builds are executed on "develop" branch only.
90
108
- " build-dev " :
@@ -93,22 +111,26 @@ workflows:
93
111
branches :
94
112
only :
95
113
- develop
114
+ - dev-circleci
96
115
97
- # Production builds are exectuted only on tagged commits to the
116
+ # Production builds are exectuted only on tagged commits to the testing
98
117
# master branch.
99
118
- " build-prod " :
100
119
context : org-global
101
120
filters :
102
121
branches :
103
122
only : master
104
123
124
+ testingflow :
125
+ when : << pipeline.parameters.run_automatedtesting >>
126
+ jobs :
127
+ - Hold [Performance-Testing] :
128
+ type : approval
105
129
- " Run-Newman-Test " :
106
- context : org-global
130
+ context : org-global
107
131
requires :
108
- - build-dev
109
- - build-prod
132
+ - Hold [Performance-Testing]
110
133
filters :
111
134
branches :
112
135
only :
113
- - automated-postman-testing
114
- - develop
136
+ - dev-circleci
You can’t perform that action at this time.
0 commit comments