Skip to content

Commit

Permalink
Use docker-build in travis #29
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed Jul 3, 2019
1 parent 8a59dba commit 5e9beff
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
services:
- docker
language: java
jdk:
- openjdk8
env:
global:
- GRAALVM_VERSION=19.0.2
- GRAALVM_HOME=/opt/graalvm-ce-$GRAALVM_VERSION
cache:
directories:
- $HOME/.m2/repository
- $HOME/.m2/wrapper
- $GRAALVM_HOME
# skip the built-in install step
install: true
before_script:
- if [ ! -f "$GRAALVM_HOME/bin/java" ]; then
curl -L https://github.com/oracle/graal/releases/download/vm-${GRAALVM_VERSION}/graalvm-ce-linux-amd64-${GRAALVM_VERSION}.tar.gz | tar xvz -C $(dirname $GRAALVM_HOME);
$GRAALVM_HOME/bin/gu install native-image;
fi
script:
- ./mvnw clean verify -Dnative -Dnative-image.xmx=5g -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
- ./mvnw clean verify -Dnative -Dnative-image.docker-build=true -Dnative-image.xmx=5g -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn

0 comments on commit 5e9beff

Please sign in to comment.