travis: set git identity

native-compilation-test
Kirill Vainer 8 years ago
parent 44bf751e35
commit 964e0017e9
  1. 6
      .travis.yml
  2. 1
      jme3-bullet-native/build.gradle
  3. 2
      private/upload_native.sh

@ -11,8 +11,10 @@ matrix:
- os: linux - os: linux
jdk: oraclejdk8 jdk: oraclejdk8
env: UPLOAD=true UPLOAD_NATIVE=true env: UPLOAD=true UPLOAD_NATIVE=true
# - os: linux - os: linux
# jdk: openjdk7 jdk: openjdk7
- os: osx
env: UPLOAD_NATIVE=true
addons: addons:
apt: apt:

@ -191,7 +191,6 @@ unzipBullet.dependsOn {
} }
task unzipBulletIfNeeded { task unzipBulletIfNeeded {
} }
unzipBulletIfNeeded.dependsOn { unzipBulletIfNeeded.dependsOn {

@ -2,6 +2,8 @@
set -e set -e
NATIVE_CHANGES="$(git diff-tree --name-only "$TRAVIS_COMMIT" -- jme3-bullet-native/)" NATIVE_CHANGES="$(git diff-tree --name-only "$TRAVIS_COMMIT" -- jme3-bullet-native/)"
if [ "$NATIVE_CHANGES" != "" ]; then if [ "$NATIVE_CHANGES" != "" ]; then
git config --global user.email "travis-ci"
git config --global user.name "travis-ci"
./gradlew --no-daemon -PbuildNativeProjects=true :jme3-bullet-native:assemble ./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 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 checkout -q "$TRAVIS_BRANCH"

Loading…
Cancel
Save