Skip to content

Commit

Permalink
Reduce CircleCI build to a minimal subset of core (testcontainers#2586)
Browse files Browse the repository at this point in the history
  • Loading branch information
rnorth authored and quincy committed May 28, 2020
1 parent 28ce57d commit 0d2fc93
Showing 1 changed file with 3 additions and 86 deletions.
89 changes: 3 additions & 86 deletions .circleci/config.yml
@@ -1,15 +1,13 @@
version: 2
jobs:
core:
minimal_core:
machine:
enabled: true
steps:
- checkout
- run:
command: ./gradlew testcontainers:build -x test -x check
command: ./gradlew --no-daemon --continue --scan testcontainers:test --tests '*GenericContainerRuleTest'
- run:
command: ./gradlew testcontainers:check --scan
- run: &ciMate
name: aggregate test reports with ciMate
when: always
environment:
Expand All @@ -28,89 +26,8 @@ jobs:
path: ~/junit
- store_artifacts:
path: ~/junit
modules-no-jdbc-test-no-selenium:
machine:
enabled: true
steps:
- checkout
- run:
command: ./gradlew check -x testcontainers:check -x selenium:check -x jdbc-test:check
--scan
environment:
TZ: /usr/share/zoneinfo/ETC/UTC
- run: *ciMate
- run:
name: Save test results
command: |
mkdir -p ~/junit/
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/junit/ \;
when: always
- store_test_results:
path: ~/junit
- store_artifacts:
path: ~/junit
modules-jdbc-test:
machine:
enabled: true
steps:
- checkout
- run:
command: ./gradlew jdbc-test:check --scan
environment:
TZ: /usr/share/zoneinfo/ETC/UTC
- run: *ciMate
- run:
name: Save test results
command: |
mkdir -p ~/junit/
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/junit/ \;
when: always
- store_test_results:
path: ~/junit
- store_artifacts:
path: ~/junit
selenium:
machine:
enabled: true
steps:
- checkout
- run:
command: ./gradlew selenium:check --scan
- run: *ciMate
- run:
name: Save test results
command: |
mkdir -p ~/junit/
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/junit/ \;
when: always
- store_test_results:
path: ~/junit
- store_artifacts:
path: ~/junit
examples:
machine:
enabled: true
steps:
- checkout
- run:
command: cd examples && ./gradlew check
- run: *ciMate
- run:
name: Save test results
command: |
mkdir -p ~/junit/
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/junit/ \;
when: always
- store_test_results:
path: ~/junit
- store_artifacts:
path: ~/junit
workflows:
version: 2
test_all:
jobs:
- core
- modules-no-jdbc-test-no-selenium
- modules-jdbc-test
- selenium
- examples
- minimal_core

0 comments on commit 0d2fc93

Please sign in to comment.