forked from jMonkeyEngine/jmonkeyengine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupload_native.sh
More file actions
executable file
·22 lines (22 loc) · 1.06 KB
/
upload_native.sh
File metadata and controls
executable file
·22 lines (22 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -euo pipefail
echo " - Checking if natives changed in commit $TRAVIS_COMMIT.."
NATIVE_CHANGES="$(git diff-tree --name-only "$TRAVIS_COMMIT" -- jme3-bullet-native/)"
if [ "$NATIVE_CHANGES" != "" ]; then
echo " - Configuring GIT user"
git config --global user.email "travis-ci"
git config --global user.name "travis-ci"
echo " - Decrypting private key"
openssl aes-256-cbc -K $encrypted_f0a0b284e2e8_key -iv $encrypted_f0a0b284e2e8_iv -in private/key.enc -out "$HOME/.ssh/id_rsa" -d
chmod 600 "$HOME/.ssh/id_rsa"
# ls jme3-bullet-native/build/libs/bulletjme/shared/
# md5 -r jme3-bullet-native/libs/native/osx/x86/libbulletjme.dylib jme3-bullet-native/build/libs/bulletjme/shared/mac32/libbulletjme.dylib
echo " - Pushing natives onto branch $TRAVIS_BRANCH"
git checkout "$TRAVIS_BRANCH"
git add -v -- jme3-bullet-native/libs/native/
git commit -v -m "[ci skip] bullet: update $TRAVIS_OS_NAME natives"
git pull -q --rebase
git push [email protected]:jMonkeyEngine/jmonkeyengine.git
else
echo No native changes.
fi