travis: test native upload
This commit is contained in:
parent
8fedbab263
commit
8b2b57f01c
11
.travis.yml
11
.travis.yml
@ -10,9 +10,9 @@ matrix:
|
|||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
jdk: oraclejdk8
|
jdk: oraclejdk8
|
||||||
env: UPLOAD=true
|
env: UPLOAD=true UPLOAD_NATIVE=true
|
||||||
- os: linux
|
# - os: linux
|
||||||
jdk: openjdk7
|
# jdk: openjdk7
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
@ -21,7 +21,7 @@ addons:
|
|||||||
- g++-multilib
|
- g++-multilib
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- git fetch --unshallow
|
- '[ -n "$UPLOAD" ] && git fetch --unshallow || :'
|
||||||
|
|
||||||
before_cache:
|
before_cache:
|
||||||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
||||||
@ -37,10 +37,9 @@ install:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- ./gradlew check
|
- ./gradlew check
|
||||||
- 'export UPLOAD_NATIVE=$(git diff-tree --name-only $TRAVIS_COMMIT -- jme3-bullet-native/)'
|
|
||||||
- '[ "$UPLOAD_NATIVE" != "" ] && echo will upload native || echo not uploading native'
|
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
|
- '[ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ -n "$UPLOAD_NATIVE" ] && ./private/upload_native.sh || :'
|
||||||
- '[ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ -n "$UPLOAD" ] && ./gradlew bintrayUpload || :'
|
- '[ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ -n "$UPLOAD" ] && ./gradlew bintrayUpload || :'
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
|
17
appveyor.yml
17
appveyor.yml
@ -16,19 +16,14 @@ clone_depth: 1
|
|||||||
|
|
||||||
image: Visual Studio 2013
|
image: Visual Studio 2013
|
||||||
|
|
||||||
environment:
|
|
||||||
priv_key:
|
|
||||||
secure: g0Q/3gQcGBr74DyDiaTi48DSKEuNAympaHF0pjWeeQgKlPZEBUNPKbBM+okJn13/IvEo5YiQO19l/0G0B6J0oiEAm9h8x+I31jskKFUD5Og9xZkZB0m0aI7zoBReiZTqojIBw8zZo4xXCkOhFTrzxaeJtqdtcObPFGWk4uUdPlcne3e81NHj6TWax2tx+yqA0i6Jkz+Jd+XvbicskgthjCmcNz07XhS7F6niC8REbSU=
|
|
||||||
|
|
||||||
init:
|
init:
|
||||||
- ps: >-
|
- cmd: openssl aes-256-cbc -K %encrypted_f0a0b284e2e8_key% -iv %encrypted_f0a0b284e2e8_iv% -in private/key.enc -out c:\users\appveyor\.ssh\id_rsa -d
|
||||||
$fileContent = "-----BEGIN EC PRIVATE KEY-----`n"
|
|
||||||
|
|
||||||
$fileContent += $env:priv_key.Replace(' ', "`n")
|
environment:
|
||||||
|
encrypted_f0a0b284e2e8_iv:
|
||||||
$fileContent += "`n-----END EC PRIVATE KEY-----`n"
|
secure: aImQXs4g7zMXm1nWRvlh2wPK1UQvozS1fOVNthpyoEDFZ2FvBSdXqh5NPbGh44+F
|
||||||
|
encrypted_f0a0b284e2e8_key:
|
||||||
Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent
|
secure: Ek2lqC2e19qQDRRdlvnYyLFBq3TNj6YwKTAPuJ2VElJsxi9lQg+9ZP+VbP4kbHTx6Zaa++vtmOuxLZL7gdILrEEPa1Jix2BBLBfcxBUxe6w=
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- cmd: del C:\Users\appveyor\.gradle\caches\modules-2\modules-2.lock
|
- cmd: del C:\Users\appveyor\.gradle\caches\modules-2\modules-2.lock
|
||||||
|
@ -191,7 +191,6 @@ unzipBullet.dependsOn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
task unzipBulletIfNeeded {
|
task unzipBulletIfNeeded {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
unzipBulletIfNeeded.dependsOn {
|
unzipBulletIfNeeded.dependsOn {
|
||||||
|
4
private/key.enc
Normal file
4
private/key.enc
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
&"˜µ+åq.âg”2K:£Æ‡TŸ†™ãŽ
>1èÃ8â]v^LЫÚÝ/R"¹o2í#5;ÂQ`;â@ñ»¦±–¾&{ãyûJGaï„GÒé;ëôÐlTd·“lîÎtnãHxŒâ¦üp~WçrˆâJ5ÁÞÄÝ争î´CºŽñh_#»
|
||||||
|
Ûž<EFBFBD>©){2xX<78>êdÞŠâçu<C3A7>1Þ³®
|
||||||
|
"
|
||||||
|
¯P‘€„éË DC¶©'e1ÍùDä·k˜]i§x&"n§93Ñ5‡žd6Œ==·XÕb”8JWŠBÌó/±wmÉJ&Y‹“Æì£Šu=*¯
|
12
private/upload_native.sh
Executable file
12
private/upload_native.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
NATIVE_CHANGES="$(git diff-tree --name-only "$TRAVIS_COMMIT" -- jme3-bullet-native/)"
|
||||||
|
if [ "$NATIVE_CHANGES" != "" ]; then
|
||||||
|
./gradlew --no-daemon -PbuildNativeProjects=true :jme3-bullet-native:assemble
|
||||||
|
openssl aes-256-cbc -K $encrypted_f0a0b284e2e8_key -iv $encrypted_f0a0b284e2e8_iv -in private/key.enc -out "$HOME/.ssh/id_rsa" -d
|
||||||
|
git checkout -q "$TRAVIS_BRANCH"
|
||||||
|
git add -- jme3-bullet-native/libs/native/
|
||||||
|
git commit -m "[ci skip] bullet: update $TRAVIS_OS_NAME natives"
|
||||||
|
git pull -q --rebase
|
||||||
|
git push git@github.com:jMonkeyEngine/jmonkeyengine.git
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user