зеркало из https://github.com/Azure/aks-engine.git
32 строки
997 B
YAML
32 строки
997 B
YAML
parameters:
|
|
job: ''
|
|
|
|
steps:
|
|
- script: |
|
|
mkdir -p '$(GOBIN)'
|
|
mkdir -p '$(GOPATH)/pkg'
|
|
shopt -s extglob
|
|
echo '##vso[task.prependpath]$(GOBIN)'
|
|
echo '##vso[task.prependpath]$(GOROOT)/bin'
|
|
displayName: 'Set up the Go workspace'
|
|
- script: make build-binary
|
|
displayName: compile
|
|
- script: |
|
|
DATE=$(date +%s)
|
|
echo "##vso[task.setvariable variable=timestamp]$DATE"
|
|
export CLIENT_ID=$(SERVICE_PRINCIPAL_CLIENT_ID_E2E_KUBERNETES)
|
|
export CLIENT_SECRET=$(SERVICE_PRINCIPAL_CLIENT_SECRET_E2E_KUBERNETES)
|
|
export CLIENT_OBJECTID=$(SERVICE_PRINCIPAL_OBJECT_ID_E2E_KUBERNETES)
|
|
make test-kubernetes
|
|
displayName: ginkgo k8s e2e tests
|
|
- task: PublishPipelineArtifact@0
|
|
inputs:
|
|
artifactName: '${{ parameters.job }}-$(timestamp)_logs'
|
|
targetPath: './_logs'
|
|
condition: false
|
|
- task: PublishTestResults@2
|
|
inputs:
|
|
testResultsFormat: JUnit
|
|
testResultsFiles: '**/junit.xml'
|
|
condition: always()
|