Skip to content

Commit

Permalink
Reduce AZP build to a minimal subset of core, except when running on …
Browse files Browse the repository at this point in the history
…Windows (#2587)
  • Loading branch information
rnorth committed Apr 19, 2020
1 parent b6cd9c8 commit c969200
Showing 1 changed file with 12 additions and 25 deletions.
37 changes: 12 additions & 25 deletions azure-pipelines.yml
@@ -1,49 +1,36 @@
jobs:
- job: core

- job: azure_pipeline_tests
steps:

# Run a minimal set of tests in normal Linux pipeline builds
- task: Gradle@2
displayName: Build & test
condition: eq(variables['Agent.OS'], 'Linux')
displayName: Build & test (Linux - minimal core)
env:
AWS_ACCESS_KEY_ID: $(aws.accessKeyId)
AWS_SECRET_ACCESS_KEY: $(aws.secretAccessKey)
inputs:
gradleWrapperFile: 'gradlew'
jdkVersionOption: '1.11'
options: '--no-daemon --continue'
tasks: 'testcontainers:check'
options: "--no-daemon --continue"
tasks: "testcontainers:test --tests GenericContainerRuleTest"
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
- script: wget -q https://get.cimate.io/release/linux/cimate && chmod +x cimate && ./cimate "**/TEST-*.xml"
condition: and(succeededOrFailed(),eq(variables['Agent.OS'], 'Linux'))
- job: jdbc
steps:

# Run all tests when running the Windows CI tests
- task: Gradle@2
displayName: Build & test
condition: eq(variables['Agent.OS'], 'Windows_NT')
displayName: Build & test (Windows - all modules)
env:
AWS_ACCESS_KEY_ID: $(aws.accessKeyId)
AWS_SECRET_ACCESS_KEY: $(aws.secretAccessKey)
inputs:
gradleWrapperFile: 'gradlew'
jdkVersionOption: '1.11'
options: '--no-daemon --continue'
tasks: 'jdbc-test:check'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
- script: wget -q https://get.cimate.io/release/linux/cimate && chmod +x cimate && ./cimate "**/TEST-*.xml"
condition: and(succeededOrFailed(), eq(variables['Agent.OS'], 'Linux'))
- job: modules
steps:
- task: Gradle@2
displayName: Build & test
env:
AWS_ACCESS_KEY_ID: $(aws.accessKeyId)
AWS_SECRET_ACCESS_KEY: $(aws.secretAccessKey)
inputs:
gradleWrapperFile: 'gradlew'
jdkVersionOption: '1.11'
options: '--continue -x testcontainers:check -x jdbc-test:check -PpostCheckCommand="docker image prune -af"'
tasks: 'check'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
- script: wget -q https://get.cimate.io/release/linux/cimate && chmod +x cimate && ./cimate "**/TEST-*.xml"
condition: and(succeededOrFailed(), eq(variables['Agent.OS'], 'Linux'))

0 comments on commit c969200

Please sign in to comment.