Skip to content

Commit fcd32d6

Browse files
authored
Update to CircleCI 2.0 (testcontainers#1289)
1 parent 2033706 commit fcd32d6

2 files changed

Lines changed: 121 additions & 112 deletions

File tree

.circleci/config.yml

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
version: 2
2+
jobs:
3+
core:
4+
machine:
5+
enabled: true
6+
steps:
7+
- checkout
8+
- run:
9+
command: ./gradlew testcontainers:build -x test -x check
10+
- run:
11+
command: ./gradlew testcontainers:check --scan
12+
- run:
13+
name: Save test results
14+
command: |
15+
mkdir -p ~/junit/
16+
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/junit/ \;
17+
when: always
18+
- store_test_results:
19+
path: ~/junit
20+
- store_artifacts:
21+
path: ~/junit
22+
okhttp:
23+
machine:
24+
enabled: true
25+
steps:
26+
- checkout
27+
- run:
28+
command: |
29+
echo "transport.type=okhttp" >> core/src/test/resources/testcontainers.properties
30+
./gradlew testcontainers:check --scan
31+
- run:
32+
name: Save test results
33+
command: |
34+
mkdir -p ~/junit/
35+
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/junit/ \;
36+
when: always
37+
- store_test_results:
38+
path: ~/junit
39+
modules-no-jdbc-test-no-selenium:
40+
machine:
41+
enabled: true
42+
steps:
43+
- checkout
44+
- run:
45+
command: ./gradlew check -x testcontainers:check -x selenium:check -x jdbc-test:check
46+
--scan
47+
environment:
48+
TZ: /usr/share/zoneinfo/ETC/UTC
49+
- run:
50+
name: Save test results
51+
command: |
52+
mkdir -p ~/junit/
53+
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/junit/ \;
54+
when: always
55+
- store_test_results:
56+
path: ~/junit
57+
- store_artifacts:
58+
path: ~/junit
59+
modules-jdbc-test:
60+
machine:
61+
enabled: true
62+
steps:
63+
- checkout
64+
- run:
65+
command: ./gradlew jdbc-test:check --scan
66+
environment:
67+
TZ: /usr/share/zoneinfo/ETC/UTC
68+
- run:
69+
name: Save test results
70+
command: |
71+
mkdir -p ~/junit/
72+
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/junit/ \;
73+
when: always
74+
- store_test_results:
75+
path: ~/junit
76+
- store_artifacts:
77+
path: ~/junit
78+
selenium:
79+
machine:
80+
enabled: true
81+
steps:
82+
- checkout
83+
- run:
84+
command: ./gradlew selenium:check --scan
85+
- run:
86+
name: Save test results
87+
command: |
88+
mkdir -p ~/junit/
89+
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/junit/ \;
90+
when: always
91+
- store_test_results:
92+
path: ~/junit
93+
- store_artifacts:
94+
path: ~/junit
95+
examples:
96+
machine:
97+
enabled: true
98+
steps:
99+
- checkout
100+
- run:
101+
command: cd examples && ../gradlew check
102+
- run:
103+
name: Save test results
104+
command: |
105+
mkdir -p ~/junit/
106+
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/junit/ \;
107+
when: always
108+
- store_test_results:
109+
path: ~/junit
110+
- store_artifacts:
111+
path: ~/junit
112+
workflows:
113+
version: 2
114+
test_all:
115+
jobs:
116+
- core
117+
- okhttp
118+
- modules-no-jdbc-test-no-selenium
119+
- modules-jdbc-test
120+
- selenium
121+
- examples

circle.yml

Lines changed: 0 additions & 112 deletions
This file was deleted.

0 commit comments

Comments
 (0)