forked from alibaba/COLA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (39 loc) · 1.3 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
# 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
language: java
# The Ubuntu Linux Build Environments
# https://docs.travis-ci.com/user/reference/linux/
dist: bionic
# JVM (Clojure, Groovy, Java, Scala) support
# https://docs.travis-ci.com/user/reference/bionic#jvm-clojure-groovy-java-scala-support
jdk:
- openjdk11
# Job Lifecycle
# https://docs.travis-ci.com/user/job-lifecycle/
before_install:
# output env info
- echo -e "PATH=$PATH\nSHELL=$SHELL"
script:
- scripts/multi-jdk-integration-test.sh
after_script:
- git status --ignored
before_cache:
# clear self maven install
- rm -rf $HOME/.m2/repository/com/alibaba/cola
- rm -rf $HOME/.m2/repository/com/alibaba/craftsman
- rm -rf $HOME/.m2/repository/com/alibaba/demo
# Caching Dependencies and Directories
# https://docs.travis-ci.com/user/caching/
cache:
directories:
- $HOME/.m2
- $HOME/.sdkman
- $HOME/.cache/pip