-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
.travis.yml
72 lines (70 loc) · 3.11 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
dist: xenial
cache:
directories:
- $HOME/.m2/repository
before_install:
- "echo '<settings><localRepository>${env.HOME}/.m2/repository</localRepository><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"
jobs:
include:
- os: linux
arch: arm64
language: java
addons:
apt:
packages: openjdk-8-jdk openjfx maven
env: PLATFORMS="linux-arm64"
install:
- export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-arm64"
script:
- mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml
- mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml -f platform/pom.xml -Djavacpp.platform=linux-arm64 '-Dtest=!FrameGrabberTest#testFFmpegFrameGrabber'
- os: linux
arch: ppc64le
language: java
addons:
apt:
packages: openjdk-8-jdk openjfx maven
env: PLATFORMS="linux-ppc64le"
install:
- export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-ppc64el"
script:
- mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml
- mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml -f platform/pom.xml -Djavacpp.platform=linux-ppc64le
- os: linux
arch: amd64
language: java
addons:
apt:
packages: openjdk-8-jdk openjfx maven
env: PLATFORMS="linux-x86_64"
install:
- export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
script:
- mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml
- mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml -f platform/pom.xml -Djavacpp.platform=linux-x86_64
- os: osx
osx_image: xcode12.2
language: java
env: PLATFORMS="macosx-x86_64"
install:
- brew update
- brew install gpg1
- brew tap AdoptOpenJDK/openjdk
- brew install --cask adoptopenjdk8
- export JAVA_HOME=$(/usr/libexec/java_home -v1.8)
script:
- mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml
- mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml -f platform/pom.xml -Djavacpp.platform=macosx-x86_64 '-Dtest=!FrameGrabberTest#testFFmpegFrameGrabber'
- os: windows
language: bash
env: PLATFORMS="windows-x86_64"
install:
- powershell Install-WindowsFeature Server-Media-Foundation
- choco install jdk8 --params 'installdir=c:\\jdk8'
- choco install maven --version=3.6.3
- export JAVA_HOME="/c/jdk8/"
- export PATH="$PATH:/c/ProgramData/chocolatey/lib/maven/apache-maven-3.6.3/bin/:/c/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Auxiliary/Build/"
script:
- cmd.exe //C 'vcvarsall.bat amd64 && mvn clean %MAVEN_PHASE% -B -V -U -s %HOME%/settings.xml'
- cmd.exe //C 'vcvarsall.bat amd64 && mvn clean %MAVEN_PHASE% -B -V -U -s %HOME%/settings.xml -f platform/pom.xml -Djavacpp.platform=windows-x86_64 -Dtest=!FrameConverterTest#testOpenCV*'