-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
34 lines (30 loc) · 1.07 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
# https://docs.travis-ci.com/user/ci-environment/
# https://docs.travis-ci.com/user/trusty-ci-environment/
dist: trusty
sudo: required
# https://docs.travis-ci.com/user/languages/java/#Projects-Using-Gradle
language: java
# http://stackoverflow.com/questions/26723369/cache-gradle-dependencies-travis-ci
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/
env:
global:
# https://docs.gradle.org/current/userguide/gradle_daemon.html
- GRADLE_OPTS="-Dorg.gradle.daemon=false"
# https://docs.travis-ci.com/user/installing-dependencies/
before_install:
- sudo add-apt-repository ppa:libreoffice/ppa -y
- sudo apt-get update -q
- sudo apt-get install libreoffice -y
# https://github.com/cedricmessiant/collective.documentfusion/blob/master/.travis.yml
before_script:
- soffice --headless --nologo --accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager" &
script:
- ./gradlew check
after_script:
- killall soffice