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 e3e1686
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 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
6 changes: 2 additions & 4 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ Prerequisites:

* Java 8
* Maven 3.5.4+ or you can use the provided Maven Wrapper, a.k.a. `mvnw`
* GraalVM
** Check link:.travis.yml[.travis.yml] for the version and steps to install
** Set the `GRAALVM_HOME` environment variable to point at the root directory of your GraalVM installation
* Docker

Fast build without tests:

Expand All @@ -49,7 +47,7 @@ Build with tests in JVM mode and native mode:

[source,shell]
----
./mvnw clean install -Dnative -Dnative-image.xmx=5g
./mvnw clean install -Dnative -Dnative-image.docker-build=true -Dnative-image.xmx=5g
----


Expand Down

0 comments on commit e3e1686

Please sign in to comment.