-
-
Notifications
You must be signed in to change notification settings - Fork 116
/
.travis.yml
36 lines (32 loc) · 959 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
25
26
27
28
29
30
31
32
33
34
35
36
language: java
jdk:
- openjdk11
addons:
chrome: stable
stages:
- name: build-linux
- name: build-osx
- name: release-linux
if: branch IN (release) AND type = push
- name: release-osx
if: branch IN (release) AND type = push
jobs:
include:
- stage: build-linux
script: ./gradlew clean build
os: linux
dist: trusty
- stage: build-osx
script: ./gradlew clean build
os: osx
osx_image: xcode11.6
- stage: release-linux
script: ./gradlew publishToSonatype -no-daemon --no-parallel
os: linux
dist: trusty
- stage: release-osx
script: ./gradlew publishToSonatype -no-daemon --no-parallel
os: osx
osx_image: xcode11.6
# Requires to manually release a new version on https://s01.oss.sonatype.org/#stagingRepositories
# add back closeAndReleaseSonatypeStagingRepository to fully automate the release but I suspect it will have a conflict with multiple jobs