forked from apache/incubator-hugegraph-toolchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (41 loc) · 1.07 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
language: java
jdk:
- oraclejdk8
dist: trusty
sudo: required
cache:
directories:
- $HOME/.m2
- $HOME/downloads
branches:
only:
- master
- /^release-.*$/
- /^test-.*$/
# Fix can't download oracle jdbc driver from maven respority
before_install: mvn install:install-file -Dfile=$STATIC_DIR/lib/ojdbc8-12.2.0.1.jar -DgroupId=com.oracle -DartifactId=ojdbc8 -Dversion=12.2.0.1 -Dpackaging=jar
install: mvn compile -Dmaven.javadoc.skip=true | grep -v "Downloading\|Downloaded"
before_script:
- $TRAVIS_DIR/install-hugegraph.sh $SERVER_VERSION | grep -v "Downloading\|Downloaded"
- |
if [ "$SOURCE_TYPE" == "hdfs" ]; then
$TRAVIS_DIR/install-hadoop.sh
fi
- |
if [ "$SOURCE_TYPE" == "jdbc" ]; then
$TRAVIS_DIR/install-mysql.sh
fi
script:
- mvn test -Punit
- mvn test -P${SOURCE_TYPE}
after_success:
- bash <(curl -s https://codecov.io/bash)
env:
matrix:
- SOURCE_TYPE=file
- SOURCE_TYPE=hdfs
- SOURCE_TYPE=jdbc
global:
- TRAVIS_DIR=assembly/travis
- STATIC_DIR=assembly/static
- SERVER_VERSION=0.10.4