1 Star 0 Fork 0

砂糖橘猫/javacpp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 6.75 KB
一键复制 编辑 原始数据 按行查看 历史
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>
<server>
<id>sonatype-nexus-staging</id>
<username>${env.CI_DEPLOY_USERNAME}</username>
<password>${env.CI_DEPLOY_PASSWORD}</password>
</server>
</servers>
</settings>' > $HOME/settings.xml
- >
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
export MAVEN_PHASE="install";
elif [[ "$TRAVIS_BRANCH" != "release" ]]; then
export MAVEN_PHASE="deploy";
else
curl -L "https://drive.google.com/uc?export=download&id=$GDOWNLOAD_ID" -o $HOME/settings.tar.gz;
tar -xzf $HOME/settings.tar.gz -C $HOME;
export GNUPGHOME="$HOME/.gnupg/";
export MAVEN_PHASE="deploy -DperformRelease -DstagingRepositoryId=$STAGING_REPOSITORY";
fi
jobs:
include:
- os: linux
arch: arm64
language: java
addons:
apt:
packages: openjdk-8-jdk-headless 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 -Djavacpp.platform=linux-arm64
- os: linux
arch: ppc64le
language: java
addons:
apt:
packages: openjdk-8-jdk-headless 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 -Djavacpp.platform=linux-ppc64le
- os: linux
arch: amd64
language: java
jdk: openjdk8
env: PLATFORMS="android-arm android-arm64 android-x86 android-x86_64 linux-armhf linux-x86 linux-x86_64"
services:
- docker
install:
- curl -L https://dl.google.com/android/repository/android-ndk-r18b-linux-x86_64.zip -o $HOME/android-ndk-r18b.zip
- curl -L https://github.com/raspberrypi/tools/archive/master.tar.gz -o $HOME/tools-master.tar.gz
- unzip -q $HOME/android-ndk-r18b.zip -d $HOME
- tar xzf $HOME/tools-master.tar.gz -C $HOME
- export ANDROID_NDK="$HOME/android-ndk-r18b"
- export ANDROID_OPTIONS="-Djavacpp.platform.root=$ANDROID_NDK -Djava.library.path= -Djavacpp.platform.suffix=-clang"
- export TOOLS_PATH="$HOME/tools-master/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf"
- export TOOLS_OPTIONS="-Djavacpp.platform.compiler=$TOOLS_PATH/bin/arm-linux-gnueabihf-g++ -Djava.library.path=$TOOLS_PATH/arm-linux-gnueabihf/lib/"
script:
- mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml -Djavacpp.platform=android-arm $ANDROID_OPTIONS -Dmaven.javadoc.skip -Dmaven.test.skip -Dinvoker.skip
- mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml -Djavacpp.platform=android-arm64 $ANDROID_OPTIONS -Dmaven.javadoc.skip -Dmaven.test.skip -Dinvoker.skip
- mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml -Djavacpp.platform=android-x86 $ANDROID_OPTIONS -Dmaven.javadoc.skip -Dmaven.test.skip -Dinvoker.skip
- mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml -Djavacpp.platform=android-x86_64 $ANDROID_OPTIONS -Dmaven.javadoc.skip -Dmaven.test.skip -Dinvoker.skip
- mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml -Djavacpp.platform=linux-armhf $TOOLS_OPTIONS -Dmaven.javadoc.skip -Dmaven.test.skip -Dinvoker.skip
- >
docker run -e CI_DEPLOY_USERNAME -e CI_DEPLOY_PASSWORD -e GPG_PASSPHRASE -e STAGING_REPOSITORY -v $HOME:$HOME -v $TRAVIS_BUILD_DIR:$TRAVIS_BUILD_DIR centos:6 /bin/sh -c "
export HOME=$HOME;
cd $TRAVIS_BUILD_DIR;
yum -q -y install centos-release-scl-rh epel-release;
yum -q -y install devtoolset-7 java-1.8.0-openjdk-devel wget unzip tar bzip2 gzip xz;
rpm -qa | sed s/.x86_64$/.i686/ | xargs yum -q -y install
find /var/cache/yum/ -name *.rpm | xargs rpm -i --force
wget --no-directories --no-parent --no-verbose -r https://www.repo.cloudlinux.com/cloudlinux/6/sclo/devtoolset-7/i386/ -P $HOME;
rpm -i --force --nodeps $HOME/*.rpm;
source scl_source enable devtoolset-7;
curl -L https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -o $HOME/apache-maven-3.6.3-bin.tar.gz;
tar -xzf $HOME/apache-maven-3.6.3-bin.tar.gz -C /opt/;
ln -sf /opt/apache-maven-3.6.3/bin/mvn /usr/bin/mvn;
gcc --version;
gpg --version;
mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml -Djavacpp.platform=linux-x86 -Dmaven.javadoc.skip -Dmaven.test.skip -Dinvoker.skip;
mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml -Djavacpp.platform=linux-x86_64;
mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml -f platform/pom.xml -Djavacpp.platform.host;
"
- os: osx
osx_image: xcode10.1
language: java
env: PLATFORMS="ios-arm64 ios-x86_64 macosx-x86_64"
install:
- brew install gpg1
- brew tap AdoptOpenJDK/openjdk
- brew cask install adoptopenjdk8
- export JAVA_HOME=$(/usr/libexec/java_home -v1.8)
- export PATH="/usr/local/opt/gpg1/libexec/gpgbin/:$PATH"
script:
- mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml -Djavacpp.platform=ios-arm64 -Dmaven.javadoc.skip -Dmaven.test.skip -Dinvoker.skip
- mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml -Djavacpp.platform=ios-x86_64 -Dmaven.javadoc.skip -Dmaven.test.skip -Dinvoker.skip
- mvn clean $MAVEN_PHASE -B -V -U -s $HOME/settings.xml -Djavacpp.platform=macosx-x86_64
- os: windows
language: bash
env: PLATFORMS="windows-x86 windows-x86_64"
install:
- choco install jdk8 --params 'installdir=c:\\jdk8'
- choco install gnupg --version=2.2.20
- choco install maven --version=3.6.3
- export JAVA_HOME="/c/jdk8/"
- export PATH="/c/Program Files (x86)/gnupg/bin/:/c/ProgramData/chocolatey/lib/maven/apache-maven-3.6.3/bin/:/c/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Auxiliary/Build/:$PATH"
script:
- cmd.exe //C 'vcvarsall.bat x86 && mvn clean %MAVEN_PHASE% -B -V -U -s %HOME%/settings.xml -Djavacpp.platform=windows-x86 -Dmaven.javadoc.skip -Dmaven.test.skip -Dinvoker.skip'
- cmd.exe //C 'vcvarsall.bat amd64 && mvn clean %MAVEN_PHASE% -B -V -U -s %HOME%/settings.xml -Djavacpp.platform=windows-x86_64'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/iclosure/javacpp.git
git@gitee.com:iclosure/javacpp.git
iclosure
javacpp
javacpp
master

搜索帮助