Skip to content

Add CI profile for optimized continuous integration builds #2957

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

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
run: ./mvnw -ntp -B org.apache.maven.plugins:maven-dependency-plugin:3.8.1:go-offline de.qaware.maven:go-offline-maven-plugin:1.2.8:resolve-dependencies -fn

- name: Build
run: ./mvnw -ntp -B clean install
run: ./mvnw -ntp -B clean install -T1 -Pci

- name: Verify formatting
run: scripts/no-git-changes.sh
Expand Down
24 changes: 24 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,30 @@
</build>
</profile>

<profile>
<id>ci</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<redirectTestOutputToFile>false</redirectTestOutputToFile>
<forkCount>1</forkCount>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<redirectTestOutputToFile>false</redirectTestOutputToFile>
<forkCount>1</forkCount>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>openrewrite</id>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import io.vertx.core.Vertx;
import io.vertx.junit5.VertxTestContext;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import org.junit.jupiter.api.*;
Expand All @@ -50,8 +51,9 @@ static void setupMockServer() {

@Test
@DisplayName("All requests should be answered")
void allRequestsShouldBeAnswered(VertxTestContext testContext) {
void allRequestsShouldBeAnswered(VertxTestContext testContext) throws InterruptedException {
sendRequests(10).compose(responses -> assertAllRequestsAnswered(responses, testContext));
testContext.awaitCompletion(1, TimeUnit.MINUTES);
}

@Nested
Expand Down
Loading