Skip to content

Commit 84526bd

Browse files
authored
Run smoke tests in a separate CI job (#163)
* Run smoke tests in a separate CI job Signed-off-by: Pavol Loffay <[email protected]> * Fix target name Signed-off-by: Pavol Loffay <[email protected]>
1 parent 8f0954b commit 84526bd

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.circleci/config.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ commands:
2525

2626
jobs:
2727
build:
28+
docker:
29+
- image: cimg/openjdk:11.0
30+
working_directory: ~/repo
31+
environment:
32+
# Customize the JVM maximum heap limit
33+
JVM_OPTS: -Xmx1g
34+
TERM: dumb
35+
steps:
36+
- setup_build_environment
37+
- populate_and_save_cache
38+
- run: make build
39+
40+
smoke-test:
2841
# For testcontainers.org
2942
machine:
3043
image: ubuntu-1604:202007-01
@@ -36,7 +49,7 @@ jobs:
3649
steps:
3750
- setup_build_environment
3851
- populate_and_save_cache
39-
- run: make build
52+
- run: make smoke-test
4053

4154
muzzle:
4255
docker:
@@ -86,6 +99,10 @@ workflows:
8699
filters:
87100
tags:
88101
only: /.*/
102+
- smoke-test:
103+
filters:
104+
tags:
105+
only: /.*/
89106
- muzzle:
90107
filters:
91108
tags:
@@ -95,6 +112,7 @@ workflows:
95112
requires:
96113
- build
97114
- muzzle
115+
- smoke-test
98116
filters:
99117
branches:
100118
ignore: /.*/

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11

22
.PHONY: build
33
build:
4-
./gradlew build --stacktrace
4+
./gradlew build -x :smoke-tests:test --stacktrace
5+
6+
.PHONY: smoke-test
7+
smoke-test:
8+
./gradlew :smoke-tests:test --stacktrace
59

610
.PHONY: muzzle
711
muzzle:

0 commit comments

Comments
 (0)