Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use docker-build in travis #30

Merged
merged 1 commit into from
Jul 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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