Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce AZP build to a minimal subset of core, except when running on Windows #2587

Merged
merged 12 commits into from Apr 19, 2020
33 changes: 11 additions & 22 deletions azure-pipelines.yml
@@ -1,49 +1,38 @@
jobs:
- job: core

# Run a minimal set of tests in normal Linux pipeline builds
- job: minimal_core
steps:
- task: Gradle@2
displayName: Build & test
displayName: Build & test (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'
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

# Run all tests when running the Windows CI tests
- job: full_build_windows
condition: eq(variables['Agent.OS'], 'Windows')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is right, but obviously want to test it.

steps:
- task: Gradle@2
displayName: Build & test
displayName: Build & test (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'))
condition: and(succeededOrFailed(),eq(variables['Agent.OS'], 'Linux'))