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 CircleCI build to a minimal subset of core #2586

Merged
merged 1 commit into from Apr 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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'
Copy link
Member Author

Choose a reason for hiding this comment

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

We'll want to refine this subset, but for now I think it's a reasonable starting point.

- 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