forked from YotpoLtd/metorikku
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
91 lines (90 loc) · 3.23 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
language: scala
dist: bionic
os: linux
services:
- docker
jdk:
- openjdk8
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt
- $TARGET_CACHE
branches:
only:
- master
- /^v[\d\.]+$/
if: NOT commit_message =~ /^Setting version to.*SNAPSHOT$/
env:
global:
- SPARK_VERSION=2.4.5
- HADOOP_VERSION=2.9.2
- HIVE1_VERSION=1.2.2
- HUDI_HIVE1_VERSION=0.4.7
- HIVE_VERSION=2.3.3
- HUDI_VERSION=0.5.2-incubating
- TARGET_CACHE=$HOME/target-cache/${TRAVIS_COMMIT}
before_script:
- export -f travis_fold
- export -f travis_time_start
- export -f travis_time_finish
- export -f travis_nanoseconds
jobs:
include:
- stage: "Build"
script: scripts/travis_build.sh
before_cache: scripts/before_cache.sh
- stage: "Tests"
name: "Unit & integration tests"
script: scripts/test.sh
before_script: scripts/load_from_cache.sh
before_cache: scripts/clear_from_cache.sh
- name: "influxdb"
script: (cd e2e/influxdb && ./test.sh)
before_script: scripts/docker_load_dev.sh
- name: "kafka"
script: (cd e2e/kafka && ./test.sh)
before_script: scripts/docker_load_dev.sh
- name: "elasticsearch"
script: (cd e2e/elasticsearch && ./test.sh)
before_script: scripts/docker_load_dev.sh
- name: "hive1"
script: (cd e2e/hive1 && ./test.sh)
before_script: scripts/docker_load_dev.sh
- name: "hive"
script: (cd e2e/hive && ./test.sh)
before_script: scripts/docker_load_dev.sh
- name: "hudi"
script: (cd e2e/hudi && ./test.sh)
before_script: scripts/docker_load_dev.sh
- name: "cdc"
script: (cd e2e/cdc && ./test.sh)
before_script: scripts/docker_load_dev.sh
- stage: "Deploy"
if: type != pull_request and (branch = master or tag =~ ^v)
before_script:
- scripts/load_from_cache.sh
- scripts/docker_load_dev.sh
script: skip
deploy:
- provider: script
skip_cleanup: true
script: scripts/publish.sh
on:
all_branches: true
condition: ($TRAVIS_BRANCH = master) || ($TRAVIS_TAG =~ ^v.*)
- provider: script
skip_cleanup: true
script: scripts/docker_publish.sh
on:
all_branches: true
condition: $TRAVIS_TAG =~ ^v.*
- provider: releases
skip_cleanup: true
token:
secure: i+W1C7xBogQ5XUxctAV92+YaraEGrHscjnuIkXHesfGEvF5rz9AdwGvpLzRIdLOHH0S4tR5uPFVUF+w86IWQOHLyZhNDybbkIpoQqRRuB0xiOwsqlcjz5IwNkhraTRF+8sPl9FBI5OuGfOKh8jy91xLpYvcMt+EKsai+5rugDxyb8/L3G5nQcH+/5c40dflDmDChkJF/qoNB7iLofMoW9uG72QHKeO87JoVJKg6o73anpuqQ9qZA7W4GYZBmU5QrHNMfdQqt/8XgrPvxq4DW8EnH1Tzg4nXuBREvY92rBxBYpAuff0uxlRJmd8n19Nk4hNRNNpwBIBlHwmbzCAY4AnRJmZT1G/A3E5wznfUt1JekIdwCfaVBbIaAbeFwrTV2DjJYSWdmeB79HF82CYRHuWY4tkxUzUMuBUK2KKFovfMvNG2Lx33cQRwC1YrCb+9W587rWx3dNfIY4vj9aWbCcfZnfrM0N00rlQKZH16dkdYIEZlg396h3v9M41MmvNgez7O/ftUILF3cIc6AG2X8xzcpbXB0lGCFwNdMXKtEpUf04Nw5Lu84Ov662OWfPAM2G/edSnXF1d56XxLnax8dQNcoqc25wcn+1VmpguzLr530rI9dNREZC2sQ7C0/cLnk6SAP12PKXk9nmigyWIbbGHe2FBC4WBSssb8xMg+bgLs=
file_glob: true
file: "$TRAVIS_BUILD_DIR/target/scala-2.11/*.jar"
on:
all_branches: true
condition: $TRAVIS_TAG =~ ^v.*