forked from bytedeco/javacv
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
29 lines (28 loc) · 1.04 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
dist: xenial
sudo: required
cache:
directories:
- $HOME/.m2
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"