diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c56ae9fde36..5780a01bb83 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,24 +1,29 @@ 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) @@ -26,24 +31,6 @@ jobs: 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'))