upload_native.sh 873 B

12345678910111213141516
  1. #!/bin/bash
  2. set -euo pipefail
  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 -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. md5sum jme3-bullet-native/build/libs/bulletjme/shared/linux32/libbulletjme.so jme3-bullet-native/libs/native/linux/x86/libbulletjme.so
  11. git checkout "$TRAVIS_BRANCH"
  12. git add -v -- jme3-bullet-native/libs/native/
  13. git commit -v -m "[ci skip] bullet: update $TRAVIS_OS_NAME natives"
  14. git pull -q --rebase
  15. git push [email protected]:jMonkeyEngine/jmonkeyengine.git
  16. # fi