-
Notifications
You must be signed in to change notification settings - Fork 155
/
.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.8
- SPARK_VERSION=3.2.1
- 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: ntE1exRG3eCuBrcucyXyF+Dhuw5vRZDTo7SfyVwHNusGZ6+6BL98tr50Txk7O28Fv0+zmVbPaQmGvSdzZ3jX9qodK/NNFu51WaAanyYDK9DifXrgmze8FcA+w9SmLOpUIjv2kZfOTTn9cSNrppT00qauZdDIg9gmGve7bHZuepbWYTtZ+nigFN+DE/3e6x1G564cur4hZiV1INcY2tmkpe03s1xlHWPRMdtJ2FU7/oZbBohgIPTjAwqMnC8ajwRkXeA9ke94mUooxHPjimpLn9hu+bcjA4cTVPsQq3Si9Ahpl/Z0nUI+eEo3EovBmv3Y/H0mc3ToeY4a3WgUyxfe5f+/2RUqjrqcm2yte00g8CQ90eRwaDR3Q+wYMcgzTPNPeEIMviYoMWyfNNrOokaXEWl5W3cW5SoKD8WATVHFAjxJAx96T82MZ4RquEFDeNt03bOQJ6kBD+kWsPNfR/qdM5zkZYPN6ZlqAc9OxmvBKBeB7mcnIQ2DZUSBe9/gqezLufvpdUxDwxN0reC4UHsNdEuPKPR/z1L0JeaUjMlO8NVz0W0AJuMRYhZi3UzJGhfMT8ahiAESYKasLqV90VsjDnH9NuEgVFM7OCtZonoUMsQNSqHKXt15psZTmOksLCMH8dcVXAAiYxCztZ491qHobu2C3mKDwbZv1xbpqTC2Q88=
file_glob: true
file: "$TRAVIS_BUILD_DIR/target/scala-*/*.jar"
on:
all_branches: true
condition: $TRAVIS_TAG =~ ^v.*