upload_native.sh 724 B

123456789101112131415
  1. #!/bin/sh
  2. set -e
  3. NATIVE_CHANGES="$(git diff-tree --name-only "$TRAVIS_COMMIT" -- jme3-bullet-native/)"
  4. if [ "$NATIVE_CHANGES" != "" ]; then
  5. git config --global user.email "travis-ci"
  6. git config --global user.name "travis-ci"
  7. ./gradlew --no-daemon -PbuildNativeProjects=true :jme3-bullet-native:assemble
  8. openssl aes-256-cbc -K $encrypted_f0a0b284e2e8_key -iv $encrypted_f0a0b284e2e8_iv -in private/key.enc -out "$HOME/.ssh/id_rsa" -d
  9. chmod 600 "$HOME/.ssh/id_rsa"
  10. git checkout -q "$TRAVIS_BRANCH"
  11. git add -- jme3-bullet-native/libs/native/
  12. git commit -m "[ci skip] bullet: update $TRAVIS_OS_NAME natives"
  13. git pull -q --rebase
  14. git push [email protected]:jMonkeyEngine/jmonkeyengine.git
  15. fi