-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run tests on ARM64 as well with Travis CI (pull #1330)
- Loading branch information
Showing
1 changed file
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,29 @@ | ||
dist: xenial | ||
sudo: false | ||
language: java | ||
jdk: | ||
- openjdk11 | ||
sudo: required | ||
cache: | ||
directories: | ||
- $HOME/.m2 | ||
script: | ||
- "echo '<settings><servers><server><id>sonatype-nexus-snapshots</id><username>${env.CI_DEPLOY_USERNAME}</username><password>${env.CI_DEPLOY_PASSWORD}</password></server></servers></settings>' > $HOME/settings.xml" | ||
- "[[ $TRAVIS_PULL_REQUEST == 'false' ]] && export MAVEN_PHASE=deploy || export MAVEN_PHASE=install" | ||
- "mvn $MAVEN_PHASE -B -U -s $HOME/settings.xml" | ||
- "mvn $MAVEN_PHASE -B -U -s $HOME/settings.xml -f platform -D javacpp.platform=linux-x86_64" | ||
|
||
jobs: | ||
include: | ||
- os: linux | ||
addons: | ||
apt: | ||
packages: maven | ||
arch: arm64 | ||
language: minimal | ||
script: | ||
- "sudo add-apt-repository ppa:openjdk-r/ppa" | ||
- "sudo apt-get update" | ||
- "sudo apt install openjdk-11-jdk-headless" | ||
- "mvn install -B -U" | ||
- "mvn install -B -U -f platform -D javacpp.platform=linux-arm64" | ||
- os: linux | ||
arch: amd64 | ||
jdk: openjdk11 | ||
language: java | ||
script: | ||
- "echo '<settings><servers><server><id>sonatype-nexus-snapshots</id><username>${env.CI_DEPLOY_USERNAME}</username><password>${env.CI_DEPLOY_PASSWORD}</password></server></servers></settings>' > $HOME/settings.xml" | ||
- "[[ $TRAVIS_PULL_REQUEST == 'false' ]] && export MAVEN_PHASE=deploy || export MAVEN_PHASE=install" | ||
- "mvn $MAVEN_PHASE -B -U -s $HOME/settings.xml" | ||
- "mvn $MAVEN_PHASE -B -U -s $HOME/settings.xml -f platform -D javacpp.platform=linux-x86_64" |