Skip to content

Commit

Permalink
Don't build whole project when building CI test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick authored and hashhar committed Feb 28, 2022
1 parent 0fe4726 commit bd0de0a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,10 @@ jobs:
with:
distribution: 'zulu'
java-version: 11
cache: 'maven'
- name: Maven install
- name: Maven validate
run: |
export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}"
$RETRY $MAVEN install ${MAVEN_FAST_INSTALL} -pl '!:trino-docs,!:trino-server,!:trino-server-rpm'
$RETRY $MAVEN validate ${MAVEN_FAST_INSTALL} -P disable-check-spi-dependencies -pl '!:trino-docs,!:trino-server,!:trino-server-rpm'
- id: set-matrix
run: |
cat <<EOF > .github/test-matrix.yaml
Expand Down
20 changes: 19 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.airlift</groupId>
<artifactId>airbase</artifactId>
<version>119</version>
<version>121</version>
</parent>

<groupId>io.trino</groupId>
Expand Down Expand Up @@ -1863,6 +1863,24 @@
</plugins>
</build>
</profile>
<profile>
<!-- Allow to run goals with an empty local Maven repository -->
<id>disable-check-spi-dependencies</id>
<build>
<plugins>
<plugin>
<groupId>io.trino</groupId>
<artifactId>trino-maven-plugin</artifactId>
<executions>
<execution>
<id>default-check-spi-dependencies</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>gib</id>
<properties>
Expand Down

0 comments on commit bd0de0a

Please sign in to comment.