forked from ical4j/ical4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (30 loc) · 1.02 KB
/
.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
25
26
27
28
29
30
cache:
directories:
- $HOME/.gradle
- $HOME/.sonar
language: java
jdk:
- oraclejdk8
- oraclejdk7
- openjdk7
script:
- ./gradlew check
deploy:
provider: releases
api_key:
secure: DpTp3xxZrKP21I13G8dYY5EBra5tcf9TsF1y9oLRdOSoVvUe0XaOQ+9WPG2RgnuH1DPVj1n2Rr6emAZ84lSzz4H7T8gPYP4pLjmJBGyriGC7N3MTG2FCBn5l6DgTKNLxtfpek/b7nClif6vVTEse/T8/9an/Yszp9bbIZNNwStE=
file:
- build/distributions/ical4j-$TRAVIS_TAG.zip
- build/distributions/ical4j-$TRAVIS_TAG.tgz
skip_cleanup: true
on:
tags: true
jdk: openjdk7
before_deploy: "./gradlew assembleMainDist"
sudo: true
addons:
hostname: travis-ci
after_script:
- sudo keytool -import -alias sonar -keystore $JAVA_HOME/jre/lib/security/cacerts -file sonar_cert.pem -storepass changeit -noprompt
# Check if commit is not a pull request, if git repo is official, and if branch is master. If checks pass, run Sonar reports
- "[[ $TRAVIS_PULL_REQUEST == false ]] && [[ $TRAVIS_REPO_SLUG == ical4j/ical4j ]] && [[ $TRAVIS_BRANCH == master ]] && ./gradlew sonarqube"