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 2424 - name : Build with Maven
2525 env :
2626 DEVELOCITY_ACCESS_KEY : ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
27- run : ./mvnw clean verify -B
27+ run : ./mvnw clean verify -B -Pci
Original file line number Diff line number Diff line change 2323
2424import org .junit .jupiter .api .BeforeEach ;
2525import org .junit .jupiter .api .Test ;
26+ import org .junit .jupiter .api .condition .DisabledIfEnvironmentVariable ;
2627import org .slf4j .Logger ;
2728import org .slf4j .LoggerFactory ;
2829import org .slf4j .event .Level ;
4647 */
4748@ SpringBootTest
4849@ Testcontainers
50+ @ DisabledIfEnvironmentVariable (named = "ci" , matches = "true" )
4951class MovieRepositoryTests {
5052
5153 private static final Logger log = LoggerFactory .getLogger (MovieRepositoryTests .class );
Original file line number Diff line number Diff line change 5757 </properties >
5858 </profile >
5959
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+
6076 </profiles >
6177
6278 <developers >
You can’t perform that action at this time.
0 commit comments