Skip to content

Commit

Permalink
Add build test image
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwatson484 committed Oct 29, 2022
1 parent 3b29359 commit da89166
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.6
1.0.7
7 changes: 6 additions & 1 deletion build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,14 @@ jobs:
script: |
$fileExists = Test-Path -Path "$(Agent.BuildDirectory)/s/${{ parameters.repo }}/docker-compose.test.yaml"
Write-Host "##vso[task.setvariable variable=testFileExists;]$fileExists"
- script: |
docker-compose -f $(Agent.BuildDirectory)/s/${{ parameters.repo }}/docker-compose.yaml -f $(Agent.BuildDirectory)/s/${{ parameters.repo }}/docker-compose.test.yaml build
displayName: Build test image
condition: and(succeeded(), eq(variables.testFileExists, true))
- script: |
docker-compose -f $(Agent.BuildDirectory)/s/${{ parameters.repo }}/docker-compose.yaml -f $(Agent.BuildDirectory)/s/${{ parameters.repo }}/docker-compose.test.yaml -p ${{ parameters.repo }}-test run ${{ parameters.repo }}
docker-compose -f $(Agent.BuildDirectory)/s/${{ parameters.repo }}/docker-compose.yaml -f $(Agent.BuildDirectory)/s/${{ parameters.repo }}/docker-compose.test.yaml -p ${{ parameters.repo }}-test run --rm ${{ parameters.repo }}
displayName: Run tests
condition: and(succeeded(), eq(variables.testFileExists, true))
Expand Down

0 comments on commit da89166

Please sign in to comment.