Skip to content

Commit a736954

Browse files
authored
chore: Remove CodeCov from CI (#853)
* Remove codecov and use service connections
1 parent 53e45c8 commit a736954

File tree

9 files changed

+205
-247
lines changed

9 files changed

+205
-247
lines changed

.circleci/config.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.pipelines/npm/npm-conformance-tests.yaml

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- agent.os -equals Linux
1919
- Role -equals Build
2020
container:
21-
image: "$(BUILD_IMAGE)" # build image set as variable in pipeline runtime for flexibility
21+
image: "$(BUILD_IMAGE)"
2222
steps:
2323

2424
- checkout: self
@@ -49,7 +49,7 @@ jobs:
4949
- agent.os -equals Linux
5050
- Role -equals Build
5151
container:
52-
image: "$(BUILD_IMAGE)" # build image set as variable in pipeline runtime for flexibility
52+
image: "$(BUILD_IMAGE)"
5353
dependsOn: [setup]
5454
variables:
5555
GOBIN: "$(GOPATH)/bin" # Go binaries path
@@ -64,15 +64,28 @@ jobs:
6464
6565
- checkout: self
6666

67+
- task: Docker@2
68+
displayName: Docker Login
69+
inputs:
70+
containerRegistry: $(ACR_SERVICE_CONNECTION)
71+
command: 'login'
72+
addPipelineData: false
73+
6774
- script: |
6875
go env
6976
echo Tag: $(TAG)
7077
echo ResourceGroup: $(RESOURCE_GROUP)
7178
VERSION=$(TAG) make azure-npm-image
72-
echo '$(DOCKER_PASSWORD)' | docker login $IMAGE_REGISTRY -u '$(DOCKER_USERNAME)' --password-stdin
7379
docker push $IMAGE_REGISTRY/azure-npm:$(TAG)
7480
displayName: 'Build and Push NPM Image'
7581
82+
- task: Docker@2
83+
displayName: Docker Logout
84+
inputs:
85+
containerRegistry: $(ACR_SERVICE_CONNECTION)
86+
command: 'logout'
87+
addPipelineData: false
88+
7689
- script: git clone https://github.com/vakalapa/kubernetes.git
7790
displayName: 'Clone Kubernetes Repo'
7891
- bash: |
@@ -92,7 +105,7 @@ jobs:
92105
- agent.os -equals Linux
93106
- Role -equals Build
94107
container:
95-
image: "$(BUILD_IMAGE)" # build image set as variable in pipeline runtime for flexibility
108+
image: "$(BUILD_IMAGE)"
96109
dependsOn: [setup]
97110
variables:
98111
RESOURCE_GROUP: $[ dependencies.setup.outputs['EnvironmentalVariables.RESOURCE_GROUP'] ]
@@ -107,7 +120,7 @@ jobs:
107120
- task: AzureCLI@2
108121
displayName: "Deploy"
109122
inputs:
110-
azureSubscription: $(BUILD_VALIDATIONS_SUBSCRIPTION)
123+
azureSubscription: $(BUILD_VALIDATIONS_SERVICE_CONNECTION)
111124
scriptType: 'bash'
112125
scriptLocation: 'inlineScript'
113126
inlineScript: |
@@ -128,7 +141,7 @@ jobs:
128141
- agent.os -equals Linux
129142
- Role -equals Build
130143
container:
131-
image: "$(BUILD_IMAGE)" # build image set as variable in pipeline runtime for flexibility
144+
image: "$(BUILD_IMAGE)"
132145
dependsOn: [Create_cluster, Build_test, setup]
133146
variables:
134147
RESOURCE_GROUP: $[ dependencies.setup.outputs['EnvironmentalVariables.RESOURCE_GROUP'] ]
@@ -140,7 +153,7 @@ jobs:
140153
- task: AzureCLI@2
141154
displayName: "Deploy NPM to Test Cluster"
142155
inputs:
143-
azureSubscription: $(BUILD_VALIDATIONS_SUBSCRIPTION)
156+
azureSubscription: $(BUILD_VALIDATIONS_SERVICE_CONNECTION)
144157
scriptType: 'bash'
145158
scriptLocation: 'inlineScript'
146159
inlineScript: |
@@ -164,19 +177,13 @@ jobs:
164177
echo "##vso[task.setvariable variable=FQDN]$FQDN"
165178
166179
- bash: |
167-
ls -la
168-
ls
169-
ls -la $(Pipeline.Workspace)
170-
ls -la $(Pipeline.Workspace)/Test
171180
echo $FQDN
172-
ls ~
173181
chmod +x $(Pipeline.Workspace)/Test/e2e.test
174182
KUBERNETES_SERVICE_HOST="$FQDN" KUBERNETES_SERVICE_PORT=443 $(Pipeline.Workspace)/Test/e2e.test --provider=local --ginkgo.focus="NetworkPolicy" --ginkgo.skip="SCTP" --kubeconfig=./kubeconfig
175183
displayName: "Run Test Suite"
176184
- bash: |
177185
curl -LO https://dl.k8s.io/release/v1.20.0/bin/linux/amd64/kubectl
178186
chmod +x kubectl
179-
ls -al
180187
npmPodList=`kubectl get pods -n kube-system | grep npm | awk '{print $1}'`
181188
mkdir -p $(System.DefaultWorkingDirectory)/npmLogs
182189
for npm in $npmPodList; do ./kubectl logs -n kube-system $npm --kubeconfig=./kubeconfig > $(System.DefaultWorkingDirectory)/npmLogs/$npm ;done
@@ -195,7 +202,7 @@ jobs:
195202
- agent.os -equals Linux
196203
- Role -equals Build
197204
container:
198-
image: "$(BUILD_IMAGE)" # build image set as variable in pipeline runtime for flexibility
205+
image: "$(BUILD_IMAGE)"
199206
condition: always()
200207
dependsOn: [Run_test, setup]
201208
variables:
@@ -206,7 +213,7 @@ jobs:
206213
- task: AzureCLI@2
207214
displayName: "Delete Test Cluster Resource Group"
208215
inputs:
209-
azureSubscription: $(BUILD_VALIDATIONS_SUBSCRIPTION)
216+
azureSubscription: $(BUILD_VALIDATIONS_SERVICE_CONNECTION)
210217
scriptType: 'bash'
211218
scriptLocation: 'inlineScript'
212219
inlineScript: |

0 commit comments

Comments
 (0)