-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (54 loc) · 1.77 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
language: java
# Building a Java project
# https://docs.travis-ci.com/user/languages/java
#
# how to install and set jdk on travis:
# - Testing Against Multiple JDKs
# https://docs.travis-ci.com/user/languages/java/#Testing-Against-Multiple-JDKs
# - JVM images
# https://docs.travis-ci.com/user/reference/trusty/#JVM-(Clojure%2C-Groovy%2C-Java%2C-Scala)-images
# - Customizing the Build / Build Matrix
# https://docs.travis-ci.com/user/customizing-the-build/#Build-Matrix
dist: trusty
addons:
apt:
packages:
- openjdk-6-jdk
branches:
except:
- appveyor
# Job Lifecycle
# https://docs.travis-ci.com/user/job-lifecycle/
before_install:
# workaround for "buffer overflow detected" problem of openjdk:
# https://github.com/travis-ci/travis-ci/issues/5227
# borrow from https://github.com/miguno/kafka-storm-starter/blob/01dd534263eb867304c06cd2a72f640da1bd9367/.travis.yml
- cat /etc/hosts # optionally check the content *before*
- sudo hostname "$(hostname | cut -c1-63)"
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts > /tmp/hosts
- sudo mv /tmp/hosts /etc/hosts
- cat /etc/hosts # optionally check the content *after*
# output env info
- ls -la
- ls -l /usr/lib/jvm && ls /usr/lib/jvm/*
- echo -e "JAVA_HOME=$JAVA_HOME\nPATH=$PATH\nSHELL=$SHELL"
install:
- pip install --user codecov
script:
- ./scripts/integration-test.sh
after_success:
# codecov
- ./scripts/codecov.sh
after_script:
- git status --ignored
before_cache:
# clear TTL maven self install
- rm -rf $HOME/.m2/repository/com/alibaba/transmittable-thread-local
# Caching Dependencies and Directories
# https://docs.travis-ci.com/user/caching/
cache:
- pip
- directories:
- $HOME/.m2
- $HOME/.sdkman
- $HOME/.cache/pip