forked from YotpoLtd/metorikku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
108 lines (107 loc) · 3.78 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
language: scala
scala:
- 2.12.15
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:
- SCALA_VERSION=2.12.15
- SCALA_MAJOR_VERSION=2.12
- SPARK2_SCALA_VERSION=2.11.12
- SPARK2_SCALA_MAJOR_VERSION=2.11
- SPARK2_HADOOP_MAJOR_VERSION=2.7
- HADOOP_MAJOR_VERSION=3.2
- SPARK2_HADOOP_VERSION=2.9.2
- SPARK2_HIVE_VERSION=2.3.3
- SPARK2_VERSION=2.4.6
- SPARK_VERSION=3.2.0
- HIVE_VERSION=2.3.7
- HUDI_VERSION=0.10.0
- TARGET_CACHE=$HOME/target-cache/${TRAVIS_COMMIT}
- LC_ALL=en_US.UTF-8
- LANG=en_US.UTF-8
before_script:
- export -f travis_fold
- export -f travis_time_start
- export -f travis_time_finish
- export -f travis_nanoseconds
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
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: "elasticsearchOnSpark3"
script: (cd e2e/elasticsearch && ./test-spark-3.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: script
skip_cleanup: true
script: scripts/ecr_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-*/*.jar"
on:
all_branches: true
condition: $TRAVIS_TAG =~ ^v.*