2019-05-29 11:27:18 +00:00
|
|
|
jobs:
|
|
|
|
- job: ${{ parameters.name }}
|
|
|
|
displayName: ${{ parameters.displayName }}
|
|
|
|
pool:
|
|
|
|
vmImage: ubuntu-16.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- script: ./integration_test
|
|
|
|
displayName: Run integration test within Docker
|
|
|
|
|
2019-05-29 20:58:46 +00:00
|
|
|
- script: bash <(curl -s https://codecov.io/bash) -t $(CODECOV_TOKEN)
|
|
|
|
displayName: Report coverage to Codecov
|
|
|
|
|
2019-05-29 11:27:18 +00: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
|