Skip to content

Instantly share code, notes, and snippets.

@coldfumonkeh
Created July 10, 2020 04:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coldfumonkeh/b3955a6b936d1ef71189f233a71050d5 to your computer and use it in GitHub Desktop.
Save coldfumonkeh/b3955a6b936d1ef71189f233a71050d5 to your computer and use it in GitHub Desktop.
Azure Pipeline Snippet
pool:
vmImage: 'ubuntu-16.04'
stages:
- stage: Testing
jobs:
- job: Lucee4
steps:
- script: |
echo Starting the build
curl --location -o /tmp/box.zip https://www.ortussolutions.com/parent/download/commandbox/type/bin
unzip /tmp/box.zip -d /tmp/
chmod a+x /tmp/box
/tmp/box install production=false
/tmp/box server start cfengine=lucee@4
mkdir /tmp/results/
/tmp/box testbox run outputFile=testbox-lucee4.xml reporter=junit
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '**/testbox-*.xml'
testRunTitle: TestBox Tests
failTaskOnFailedTests: true
displayName: 'TestBox Results'
- job: Lucee5
steps:
- script: |
echo Starting the build
curl --location -o /tmp/box.zip https://www.ortussolutions.com/parent/download/commandbox/type/bin
unzip /tmp/box.zip -d /tmp/
chmod a+x /tmp/box
/tmp/box install production=false
/tmp/box server start cfengine=lucee@5
mkdir /tmp/results/
/tmp/box testbox run outputFile=testbox-lucee5.xml reporter=junit
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '**/testbox-*.xml'
testRunTitle: TestBox Tests
failTaskOnFailedTests: true
displayName: 'TestBox Results'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment