-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
96 lines (92 loc) · 2.43 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
references:
cache: &cache
before_cache:
- rm -f $USER_DIR/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $USER_DIR/.gradle/caches/jars-3/
- $USER_DIR/.gradle/caches/modules-2/
- $USER_DIR/.gradle/wrapper/
- $USER_DIR/.konan/dependencies/
linux: &linux
os: linux
dist: xenial
language: java
jdk: openjdk11
env:
- USER_DIR=$HOME
<<: *cache
osx: &osx
os: osx
osx_image: xcode10.1
language: java
jdk: openjdk11
env:
- USER_DIR=$HOME
<<: *cache
wine: &wine
os: linux
dist: xenial
env:
- GRADLE_OPTS=-Dorg.gradle.daemon=false
- JAVA_HOME=c:\jdk-11.0.2
- DRIVE_C=$HOME/.wine/drive_c
- USER_DIR=$DRIVE_C/users/$USER
<<: *cache
before_install:
- sudo dpkg --add-architecture i386
- curl https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
- sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
- sudo apt-get update -q
- sudo apt-get install -qy winehq-stable
- wineboot
- |
if [ ! -e $DRIVE_C/jdk-11.0.2/release ]; then
curl -O https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_windows-x64_bin.zip
unzip openjdk-11.0.2_windows-x64_bin.zip -d $DRIVE_C
fi
deploy: &deploy
provider: script
on:
tags: true
branch: master
skip_cleanup: true
notifications:
email:
recipients:
- tmurakami@users.noreply.github.com
on_success: change
on_failure: always
stages:
- test
- name: publish
if: type = push AND tag IS present
install: true
jobs:
include:
- stage: test
<<: *linux
script: ./gradlew check
- <<: *osx
script: ./gradlew macosX64Test
- <<: *wine
script: wine cmd /c gradlew mingwX64Test
- stage: publish
<<: *linux
script: skip
deploy:
<<: *deploy
script: ./gradlew publish
- <<: *osx
script: skip
deploy:
<<: *deploy
script: ./gradlew publishMacosX64PublicationToMavenRepository
publishIosArm32PublicationToMavenRepository
publishIosArm64PublicationToMavenRepository
publishIosX64PublicationToMavenRepository
- <<: *wine
script: skip
deploy:
<<: *deploy
script: wine cmd /c gradlew publishMingwX64PublicationToMavenRepository