-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Introduce publish config property * Introduce custom publish command configuration * Prepare publish build step * introduce publish buiuld step * introduce publish build item to order build steps
- Loading branch information
1 parent
52c34bf
commit fa365b0
Showing
12 changed files
with
204 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...yment/src/main/java/io/quarkiverse/quinoa/deployment/items/PublishedPackageBuildItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package io.quarkiverse.quinoa.deployment.items; | ||
|
||
import io.quarkus.builder.item.SimpleBuildItem; | ||
|
||
public final class PublishedPackageBuildItem extends SimpleBuildItem { | ||
|
||
private final boolean skipped; | ||
|
||
public PublishedPackageBuildItem(boolean skipped) { | ||
this.skipped = skipped; | ||
} | ||
|
||
public boolean isSkipped() { | ||
return skipped; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
deployment/src/test/java/io/quarkiverse/quinoa/test/QuinoaPackageManagerPublishTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package io.quarkiverse.quinoa.test; | ||
|
||
import static io.quarkiverse.quinoa.deployment.testing.QuinoaQuarkusUnitTest.getWebUITestDirPath; | ||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
|
||
import io.quarkiverse.quinoa.deployment.testing.QuinoaQuarkusUnitTest; | ||
import io.quarkus.test.QuarkusUnitTest; | ||
|
||
public class QuinoaPackageManagerPublishTest { | ||
private static final String NAME = "package-manager-publish"; | ||
|
||
@RegisterExtension | ||
static final QuarkusUnitTest config = QuinoaQuarkusUnitTest.create(NAME).toQuarkusUnitTest() | ||
.overrideConfigKey("quarkus.quinoa.just-build", "true") | ||
.overrideConfigKey("quarkus.quinoa.publish", "true") | ||
.assertLogRecords(l -> { | ||
assertThat(l) | ||
.anyMatch(s -> s.getMessage().startsWith("Running Quinoa package manager publish command")); | ||
}); | ||
|
||
@Test | ||
public void testQuinoa() { | ||
// target/quinoa/build dir shall not exist while just-build activated | ||
assertThat(getWebUITestDirPath(NAME).resolve("quinoa-app-1.0.0.tgz")).exists(); | ||
assertThat(getWebUITestDirPath(NAME).resolve("node_modules/installed")).isRegularFile() | ||
.hasContent("hello"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters