2019-05-29 13:27:18 +02:00
|
|
|
jobs:
|
|
|
|
- job: ${{ parameters.name }}
|
|
|
|
displayName: ${{ parameters.displayName }}
|
|
|
|
pool:
|
|
|
|
vmImage: ubuntu-16.04
|
|
|
|
|
|
|
|
steps:
|
2019-06-06 14:18:00 +02:00
|
|
|
- script: docker pull starshipcommand/starship-test
|
|
|
|
displayName: Pull docker image
|
2019-05-29 13:27:18 +02:00
|
|
|
|
2019-06-06 14:18:00 +02:00
|
|
|
- script: ./integration_test
|
|
|
|
displayName: Run integration test suite
|
2019-05-29 22:58:46 +02:00
|
|
|
|
2019-05-29 13:27:18 +02:00
|
|
|
- script: |
|
|
|
|
docker login -u $(dockerUsername) -p $(dockerPassword)
|
|
|
|
docker push starshipcommand/starship-test
|
|
|
|
# Only push new image if on master and build is passing
|
|
|
|
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
|
|
|
displayName: Push image to dockerhub
|