This repository has been archived by the owner on Dec 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
.gitlab-ci.yml
134 lines (117 loc) · 2.9 KB
/
.gitlab-ci.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
stages:
- prepare
- test
build build-env image:
stage: prepare
script:
- cd ci/build-env
- docker build -t ${CI_REGISTRY_IMAGE}/build-env .
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker push $CI_REGISTRY_IMAGE/build-env
tags:
- docker-host
only:
- master@lukas/python-phoenixdb
.build-phoenix-image: &build_phoenix_image
stage: prepare
script:
- JOB_NAME=($CI_JOB_NAME)
- cd ci/phoenix
- docker build -t ${CI_REGISTRY_IMAGE}/phoenix:${JOB_NAME[2]}
--build-arg PHOENIX_VERSION=$PHOENIX_VERSION
--build-arg HBASE_VERSION=$HBASE_VERSION
--build-arg HBASE_DIR=$HBASE_DIR
.
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker push $CI_REGISTRY_IMAGE/phoenix:${JOB_NAME[2]}
tags:
- docker-host
build phoenix 5.0.0-alpha-HBase-2.0 image:
<<: *build_phoenix_image
variables:
PHOENIX_VERSION: 5.0.0-alpha-HBase-2.0
HBASE_VERSION: 2.0.0-beta-1
HBASE_DIR: hbase-2.0.0-beta-1
build phoenix 4.13 image:
<<: *build_phoenix_image
variables:
PHOENIX_VERSION: 4.13.1-HBase-1.3
HBASE_VERSION: 1.3.1
HBASE_DIR: 1.3.1
build phoenix 4.12 image:
<<: *build_phoenix_image
variables:
PHOENIX_VERSION: 4.12.0-HBase-1.3
HBASE_VERSION: 1.3.1
HBASE_DIR: 1.3.1
build phoenix 4.11 image:
<<: *build_phoenix_image
variables:
PHOENIX_VERSION: 4.11.0-HBase-1.3
HBASE_VERSION: 1.3.1
HBASE_DIR: 1.3.1
build phoenix 4.10 image:
<<: *build_phoenix_image
variables:
PHOENIX_VERSION: 4.10.0-HBase-1.2
HBASE_VERSION: 1.2.6
HBASE_DIR: 1.2.6
build phoenix 4.9 image:
<<: *build_phoenix_image
variables:
PHOENIX_VERSION: 4.9.0-HBase-1.2
HBASE_VERSION: 1.2.6
HBASE_DIR: 1.2.6
build phoenix 4.8 image:
<<: *build_phoenix_image
variables:
PHOENIX_VERSION: 4.8.2-HBase-1.2
HBASE_VERSION: 1.2.6
HBASE_DIR: 1.2.6
.test: &test
image: $CI_REGISTRY_IMAGE/build-env
variables:
PHOENIXDB_TEST_DB_URL: http://phoenix:8765/
PIP_CACHE_DIR: $CI_PROJECT_DIR/cache/
script:
- tox -e py27,py35
cache:
paths:
- cache/
tags:
- docker
test phoenix 5.0.0-alpha-HBase-2.0:
<<: *test
services:
- name: $CI_REGISTRY_IMAGE/phoenix:5.0.0-alpha-HBase-2.0
alias: phoenix
test phoenix 4.13:
<<: *test
services:
- name: $CI_REGISTRY_IMAGE/phoenix:4.13
alias: phoenix
test phoenix 4.12:
<<: *test
services:
- name: $CI_REGISTRY_IMAGE/phoenix:4.12
alias: phoenix
test phoenix 4.11:
<<: *test
services:
- name: $CI_REGISTRY_IMAGE/phoenix:4.11
alias: phoenix
test phoenix 4.10:
<<: *test
services:
- name: $CI_REGISTRY_IMAGE/phoenix:4.10
alias: phoenix
test phoenix 4.9:
<<: *test
services:
- name: $CI_REGISTRY_IMAGE/phoenix:4.9
alias: phoenix
test phoenix 4.8:
<<: *test
services:
- name: $CI_REGISTRY_IMAGE/phoenix:4.8
alias: phoenix