forked from sbt/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (30 loc) · 1023 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
dist: xenial
language: ruby
jdk: openjdk8
addons:
apt:
sources:
- sourceline: 'deb https://dl.bintray.com/sbt/debian /'
key_url: 'https://bintray.com/user/downloadSubjectPublicKey?username=sbt'
packages:
- sbt=1.3.9
- libgmp10
- latex-cjk-all
- texlive-full
before_script:
- wget https://github.com/jgm/pandoc/releases/download/2.3.1/pandoc-2.3.1-1-amd64.deb
- sudo dpkg -i pandoc-2.3.1-1-amd64.deb
- rm pandoc-2.3.1-1-amd64.deb
- export JVM_OPTS="-Dfile.encoding=UTF-8 -Xmx1G -Xms1G -server -XX:ReservedCodeCacheSize=128M"
# Use `/usr/bin/sbt` that we manually installed
script: /usr/bin/sbt -Dsbt.website.generate_pdf scalafmtSbtCheck scalafmtCheck test:scalafmtCheck scripted makeSite
after_success: .travis/publish-site.sh
before_cache:
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -delete
cache:
- apt
- directories:
- $HOME/.cache/coursier/v1
- $HOME/.ivy2/cache
- $HOME/.sbt