-
Notifications
You must be signed in to change notification settings - Fork 36
/
.travis.yml
24 lines (20 loc) · 1000 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Source language and JDK version to use
language: java
jdk: oraclejdk8
# Compile and package JAR and set build properties
install: ./gradlew setupCIWorkspace
script: ./gradlew build -PbuildNumber=$TRAVIS_BUILD_NUMBER -PciSystem=travis -Pcommit=${TRAVIS_COMMIT:0:7}
# Perform steps after compilation/test success
after_success:
# Check if commit s not a pull request, if git repo is official, and if branch is 1.7. If checks pass, add libs and deploy artifacts to Maven repository.
#- "[[ $TRAVIS_PULL_REQUEST == false ]] && [[ $TRAVIS_REPO_SLUG == Ordinastie/MalisisCore ]] && [[ $TRAVIS_BRANCH == 1.8.9]] && ./gradlew uploadArchives"
- "[[ $TRAVIS_PULL_REQUEST == false ]] && [[ $TRAVIS_REPO_SLUG == Ordinastie/MalisisCore ]] && ./gradlew uploadArchives"
# Notification services
notifications:
# Disable build status email notifications, until the issue with forks is fixed
email: false
# Environmental system variables
env:
global:
# Make the log output cleaner
- TERM=dumb