-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.travis.yml
67 lines (56 loc) · 3.52 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
language: scala
# Docs should only be published for one version.
# When changing versions, change the after_success section too.
scala:
- 2.10.5
- 2.11.8
jdk:
- oraclejdk8
# Use the container-based infrastructure. Aloha only works on the container-based infrastructure
# because currently, /proc/version in the non-container-based infrastructure doesn't match the VM
# type. The VM says Ubuntu 12 and /proc/version says redhat.
# dist: precise
dist: trusty
sudo: false
cache:
directories:
- $HOME/vw
- $HOME/protobuf
- $HOME/.m2/repository
- $HOME/.sbt
- $HOME/.ivy2
before_cache:
# Tricks to avoid unnecessary cache updates
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -delete
# VW in aloha-vw-jni needs libboost program options
addons:
apt:
packages:
- libboost-program-options-dev
before_install:
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/vw # Install dir for libs. LD_LIBRARY_PATH is included in java.library.path.
- source travis-bash-fns.sh
- source travis-install-vw-jni-lib.sh
- source travis-install-protobuf.sh
- bash travis-install-aloha-proto.sh
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then bash travis-decrypt-keys.sh; fi
- export PATH=${PATH}:./vendor/bundle
# These are all sbt-microsites requirements
install:
- source travis-install-microsite-deps.sh
env:
global:
- secure: FXO8gpf86zX6ElnorvWlfvnVKFCz6O4cpG7fN2zqE7ldg+WJxFI5ck73zGkwLuihPLv4JKMcRcqIiYZFkY8kw3rEaI7tRjw0bLTdxewNqmPD+oRx69WnVNuSgtD8v6Lhs4PEJhYMHNOIZHGhWauMqI6p65+vk9hdsDTh5XfW2A8dhIPJbnWdUuXxbQphC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1gxDhSlAiwKMQWAD13lpTYvl6Ld/zyowvka7l0IPyfmCE5XClGnG5zHWdS/9qqEhUxtoYC2ssmtCdie9clu4IvbC9bLoKyLhvRY7Bs=
# Make sure the tests pass AND documentation compiles. Added -J-Xss2m until
# org.tpolecat:tut-plugin:0.5.5+ can be used. That version incorporates a
# stack-safe State monad which currently stack overflows with large files. I
# Think the version of sbt-microsites which pulls it in tut 0.5.5+ is v0.6.1
# but it looks like that requires SBT v1.0+.
script:
- sbt ++$TRAVIS_SCALA_VERSION test docs:tut
# Only publish docs for one Scala version (latest).
after_success:
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then sbt ++$TRAVIS_SCALA_VERSION publish; fi
- if [[ "$TRAVIS_BRANCH" == "master" ]] && [[ "$TRAVIS_PULL_REQUEST" == "false" ]] && [[ "$TRAVIS_SCALA_VERSION" == "2.11.8" ]]; then bash travis-publish-microsite.sh; fi