test: !gradle dockerfile function graalvm & maven
see:
@@ -9,6 +9,7 @@ import io.micronaut.starter.options.BuildTool
import io.micronaut.starter.options.Language
import io.micronaut.starter.options.Options
import io.micronaut.starter.options.TestFramework
+import spock.lang.PendingFeature
import spock.lang.Shared
import spock.lang.Subject
import spock.lang.Unroll
@@ -161,6 +162,7 @@ class GraalNativeImageSpec extends BeanContextSpec implements CommandOutputFixtu
then:
dockerfile
+ !dockerfile.contains('gradle')
dockerfile.contains('RUN native-image --no-server -cp target/foo-*.jar')
dockerfile.contains('COPY --from=graalvm /home/app/foo/foo /app/foo')
dockerfile.contains('ENTRYPOINT ["/app/foo"]')
@@ -285,6 +287,7 @@ class GraalNativeImageSpec extends BeanContextSpec implements CommandOutputFixtu
language << Language.values().toList()
}
+ @PendingFeature
@Unroll
void 'verify dockerfile for a function application type with maven and feature graalvm for language=#language'() {
when:
@@ -297,6 +300,7 @@ class GraalNativeImageSpec extends BeanContextSpec implements CommandOutputFixtu
then:
dockerfile
+ !dockerfile.contains('gradle')
dockerfile.contains('RUN /usr/lib/graalvm/bin/native-image --no-server -cp target/foo-*.jar')
dockerfile.contains('RUN chmod 777 bootstrap')
dockerfile.contains('RUN chmod 777 foo')
