forked from sbt/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (43 loc) · 1.09 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
# Use Ubuntu 14.04
dist: trusty
sudo: false
language: ruby
rvm: 2.2.3
cache:
- apt
- bundler
- directories:
- $HOME/.ivy2/cache
jdk:
- oraclejdk8
install:
- gem install nanoc:4.0.2
- gem install redcarpet
- gem install nokogiri
addons:
apt:
sources:
- sourceline: 'deb https://dl.bintray.com/sbt/debian /'
- key_url: 'https://bintray.com/user/downloadSubjectPublicKey?username=sbt'
packages:
- sbt=1.0.0
- pandoc
- latex-cjk-all
- texlive-full
before_script:
- export JVM_OPTS="-Dfile.encoding=UTF-8 -Xmx1G -Xms1G -server -XX:ReservedCodeCacheSize=128M"
script:
- /usr/bin/sbt scalafmtTest scripted makeSite
# Tricks to avoid unnecessary cache updates
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
after_success:
- .travis/publish-site.sh
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/ghpages
- $HOME/.sbt/boot
before_cache:
- find $HOME/.ivy2 -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete