File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
mongodb/fragment-spi/sample/src/test/java/com/example/data/mongodb Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 24
24
- name : Build with Maven
25
25
env :
26
26
DEVELOCITY_ACCESS_KEY : ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
27
- run : ./mvnw clean verify -B
27
+ run : ./mvnw clean verify -B -Dci
Original file line number Diff line number Diff line change 23
23
24
24
import org .junit .jupiter .api .BeforeEach ;
25
25
import org .junit .jupiter .api .Test ;
26
+ import org .junit .jupiter .api .condition .DisabledIfEnvironmentVariable ;
26
27
import org .slf4j .Logger ;
27
28
import org .slf4j .LoggerFactory ;
28
29
import org .slf4j .event .Level ;
46
47
*/
47
48
@ SpringBootTest
48
49
@ Testcontainers
50
+ @ DisabledIfEnvironmentVariable (named = "ci" , matches = "true" )
49
51
class MovieRepositoryTests {
50
52
51
53
private static final Logger log = LoggerFactory .getLogger (MovieRepositoryTests .class );
Original file line number Diff line number Diff line change 57
57
</properties >
58
58
</profile >
59
59
60
+ <profile >
61
+ <id >ci</id >
62
+ <build >
63
+ <plugins >
64
+ <plugin >
65
+ <artifactId >maven-surefire-plugin</artifactId >
66
+ <configuration >
67
+ <environmentVariables >
68
+ <ci >true</ci >
69
+ </environmentVariables >
70
+ </configuration >
71
+ </plugin >
72
+ </plugins >
73
+ </build >
74
+ </profile >
75
+
60
76
</profiles >
61
77
62
78
<developers >
You can’t perform that action at this time.
0 commit comments