exclude NonCi tests from ci
This commit is contained in:
parent
f672624928
commit
61320b5dbe
3 changed files with 6 additions and 3 deletions
|
@ -46,7 +46,7 @@ test:
|
||||||
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
|
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
|
||||||
- docker run --privileged -dit --name provs_test -v /var/run/docker.sock:/var/run/docker.sock $CI_REGISTRY_IMAGE
|
- docker run --privileged -dit --name provs_test -v /var/run/docker.sock:/var/run/docker.sock $CI_REGISTRY_IMAGE
|
||||||
- docker inspect -f '{{.State.Running}}' provs_test
|
- docker inspect -f '{{.State.Running}}' provs_test
|
||||||
- ./gradlew -x assemble test -Dtestdockerwithoutsudo=true -DexcludeTags=extensivecontainertest
|
- ./gradlew -x assemble test -Dtestdockerwithoutsudo=true -DexcludeTags=extensivecontainertest,nonci
|
||||||
artifacts:
|
artifacts:
|
||||||
when: on_failure
|
when: on_failure
|
||||||
paths:
|
paths:
|
||||||
|
|
|
@ -8,6 +8,7 @@ import org.domaindrivenarchitecture.provs.framework.core.cli.retrievePassword
|
||||||
import org.domaindrivenarchitecture.provs.framework.core.local
|
import org.domaindrivenarchitecture.provs.framework.core.local
|
||||||
import org.domaindrivenarchitecture.provs.framework.core.processors.PrintOnlyProcessor
|
import org.domaindrivenarchitecture.provs.framework.core.processors.PrintOnlyProcessor
|
||||||
import org.domaindrivenarchitecture.provs.framework.core.remote
|
import org.domaindrivenarchitecture.provs.framework.core.remote
|
||||||
|
import org.domaindrivenarchitecture.provs.test.tags.NonCi
|
||||||
import org.junit.jupiter.api.AfterAll
|
import org.junit.jupiter.api.AfterAll
|
||||||
import org.junit.jupiter.api.BeforeAll
|
import org.junit.jupiter.api.BeforeAll
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
|
@ -39,6 +40,7 @@ internal class CliTargetCommandKtTest {
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@NonCi
|
||||||
fun createProvInstance_local() {
|
fun createProvInstance_local() {
|
||||||
// given
|
// given
|
||||||
val cliCommand = TargetCliCommand("local", false)
|
val cliCommand = TargetCliCommand("local", false)
|
||||||
|
|
|
@ -6,7 +6,7 @@ import org.junit.jupiter.api.Test
|
||||||
|
|
||||||
private const val CONTAINER_TEST = "containertest"
|
private const val CONTAINER_TEST = "containertest"
|
||||||
private const val EXTENSIVE_CONTAINER_TEST = "extensivecontainertest"
|
private const val EXTENSIVE_CONTAINER_TEST = "extensivecontainertest"
|
||||||
private const val CONTAINER_TEST_NON_CI = "containernonci"
|
private const val NON_CI = "nonci"
|
||||||
|
|
||||||
|
|
||||||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
|
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
|
||||||
|
@ -28,6 +28,7 @@ annotation class ExtensiveContainerTest
|
||||||
|
|
||||||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
|
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
|
||||||
@Retention
|
@Retention
|
||||||
@Tag(CONTAINER_TEST_NON_CI)
|
@Tag(NON_CI)
|
||||||
@Test
|
@Test
|
||||||
|
// For test which do not run in ci pipeline
|
||||||
annotation class NonCi
|
annotation class NonCi
|
Loading…
Reference in a new issue