forked from vavr-io/vavr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (39 loc) · 1.48 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
language: java
sudo: false
dist: trusty
install: echo "Disabled Travis CI 'install' stage by default"
env:
global:
- # ossrhUsername
- secure: GwuNkNkV6QUnThmV+ZsiPuR+M50sVN+7qT+Ca9qRiXAhbUJpV0kcQz+NSV/gDE9UmsdzKfPzsSaKPjtIbKN9gFzFsOCd99TXGD1n3Kkya//Pw1ziDOtZFI9EMjO/8qPIEIR+Cfk7niqpyET/ypC7aklxv8raiCVrPDXJ8TJWsYM=
- # ossrhPassword
- secure: i+gbt9z+eCnGV1TadNWPrkOgxmeTYUvfkQYOvVQ01cqkTeNL5YKoWx3cpoidEvx4Bj00XkNqXXvMEBViEgnVlA4Xqm8n/05WcVr6uJ/HFq1hkBTiVl5LJEvXH4NBVoEZJTY4h9B7ulMHqvhM9U/vTBYbjK+L+9OC6B+U/IJe2Ho=
matrix:
include:
- jdk: oraclejdk8
- jdk: oraclejdk9
- jdk: openjdk10
- jdk: openjdk11
env: DEPLOY=true
- jdk: openjdk12
- jdk: openjdk-13
- jdk: openjdk-ea
allow_failures:
- jdk: openjdk-13
- jdk: openjdk-ea
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
before_install:
- export GRADLE_JAVA_HOME="$JAVA_HOME"
- unset _JAVA_OPTIONS
script:
- ./gradlew check --info -Dorg.gradle.java.home="$GRADLE_JAVA_HOME"
- if [ -n "$(git status -su src-gen)" ]; then exit 1; fi
after_success:
- if [[ -n $DEPLOY ]]; then bash <(curl -s https://codecov.io/bash); fi
- if [[ -n $DEPLOY ]] && [ "$TRAVIS_REPO_SLUG" == "vavr-io/vavr" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then ./gradlew uploadArchives -PossrhUsername="$ossrhUsername" -PossrhPassword="$ossrhPassword"; fi