forked from conceptboard/jodconverter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cirrus.yml
95 lines (92 loc) · 3.41 KB
/
.cirrus.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
# Linux
linux_task:
install_script:
# The following uses latest LO version. Without this, the tests would
# be executed using an older LO version (4.2.8.2 as of 2020-01-14)
#- add-apt-repository -y ppa:libreoffice/libreoffice-5-4
#- add-apt-repository -y ppa:libreoffice/libreoffice-4-2
#- add-apt-repository -y ppa:libreoffice/ppa
- apt-get -q update
- apt-get -y install libreoffice
# See https://hub.docker.com/_/openjdk for openjdk versions that could be tested.
matrix:
- name: linux:openjdk8
env:
CI_NAME: "CirrusCI"
CI_BUILD_NUMBER: $CIRRUS_TASK_ID
CI_BUILD_URL: "https://cirrus-ci.com/task/$CIRRUS_TASK_ID"
CI_BRANCH: $CIRRUS_BRANCH
CI_PULL_REQUEST: $CIRRUS_PR
COVERALLS_REPO_TOKEN: ENCRYPTED[9fa0f47af9055f09dc3f3e65c4d126fedff998cbdc4430847762be36c38477f0658d577cd981a6ed8bd5439fa8e4defd]
container:
image: openjdk:8-jdk
build_script:
- ./gradlew build -x javadoc --stacktrace
coverage_script:
- ./gradlew coveralls --warning-mode all
- name: linux:openjdk11
container:
image: openjdk:11-jdk
build_script:
- ./gradlew build -x javadoc --stacktrace
# Windows
windows_task:
windows_container:
image: cirrusci/windowsservercore:2019
env:
JAVA_HOME: C:\Program Files\AdoptOpenJDK
clone_script:
# Use custom cloning to set the autocrlf to true orelse spotless will fail on Windows.
CMD.exe /C ECHO ON &
IF NOT DEFINED CIRRUS_PR (
git config --global core.autocrlf true &
git clone --recursive --branch=%CIRRUS_BRANCH% https://x-access-token:%CIRRUS_REPO_CLONE_TOKEN%@github.com/%CIRRUS_REPO_FULL_NAME%.git %CIRRUS_WORKING_DIR% &
git reset --hard %CIRRUS_CHANGE_IN_REPO%
) ELSE (
git config --global core.autocrlf true &
git clone --recursive https://x-access-token:%CIRRUS_REPO_CLONE_TOKEN%@github.com/%CIRRUS_REPO_FULL_NAME%.git %CIRRUS_WORKING_DIR% &
git fetch origin pull/%CIRRUS_PR%/head:pull/%CIRRUS_PR% &
git reset --hard %CIRRUS_CHANGE_IN_REPO%
)
matrix:
- name: windows:adoptopenjdk8
env:
# https://chocolatey.org/packages/adoptopenjdk8
ADOPTOPENJDK_PACKAGE: adoptopenjdk8
- name: windows:adoptopenjdk11
env:
# https://chocolatey.org/packages/adoptopenjdk11
ADOPTOPENJDK_PACKAGE: adoptopenjdk11
install_script:
- choco install -y libreoffice
- choco install -y %ADOPTOPENJDK_PACKAGE% --params="/ADDLOCAL=FeatureMain,FeatureJavaHome /INSTALLDIR=%JAVA_HOME% /quiet"
build_script:
- gradlew.bat build -x javadoc --stacktrace
# macOS
macos_task:
# See https://cirrus-ci.org/guide/macOS/#list-of-available-images versions that could be tested.
matrix:
- name: macos:xcode:12.2
macos_instance:
image: catalina-xcode-12.2
install_script:
- brew update
- brew install --cask libreoffice
build_script:
- ./gradlew build -x javadoc --stacktrace
# FreeBSD
freebsd_task:
freebsd_instance:
image_family: freebsd-12-1
install_libreoffice_script:
- pkg install -y libreoffice
# See https://www.freebsd.org/java/ for all available openjdk that could be tested.
matrix:
- name: freebsd:openjdk8
install_java_script:
- pkg install -y openjdk8
- name: freebsd:openjdk11
install_java_script:
- pkg install -y openjdk11
build_script:
- ./gradlew build -x javadoc --stacktrace