travis: add build/upload task

native-compilation-test
Kirill Vainer 8 years ago
parent 4f53351f76
commit 7f936fa29b
  1. 15
      .travis.yml

@ -8,12 +8,14 @@ branches:
matrix:
include:
- jdk: oraclejdk8
os: linux
# env: UPLOAD_ALL=true
- os: osx
env: BUILD_TASK=":jme3-bullet-native:build" UPLOAD_TASK=":jme3-bullet-native:bintrayUpload"
# - jdk: oraclejdk8
# os: linux
# env: GRADLE_TASK="check"
# - jdk: openjdk7
# os: linux
# - os: osx
# env: GRADLE_TASK="check"
addons:
apt:
@ -36,11 +38,10 @@ cache:
install:
script:
- ./gradlew :jme3-bullet-native:build
# - ./gradlew check
- './gradlew "$BUILD_TASK"'
after_success:
- '[ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ -n "$UPLOAD_ALL" ] && ./gradlew bintrayUpload || :'
- '[ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && ./gradlew "$UPLOAD_TASK" || :'
notifications:
slack:

Loading…
Cancel
Save