.gitlab-ci.yml 2.9 KB
Newer Older
Lukáš Lalinský's avatar
Lukáš Lalinský committed
1 2 3 4 5 6 7 8
stages:
  - prepare
  - test

build build-env image:
  stage: prepare
  script:
    - cd ci/build-env
Lukáš Lalinský's avatar
Lukáš Lalinský committed
9
    - docker build -t ${CI_REGISTRY_IMAGE}/build-env .
Lukáš Lalinský's avatar
Lukáš Lalinský committed
10
    - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
Lukáš Lalinský's avatar
Lukáš Lalinský committed
11 12 13
    - docker push $CI_REGISTRY_IMAGE/build-env
  tags:
    - docker-host
Lukáš Lalinský's avatar
Lukáš Lalinský committed
14 15
  only:
    - master@lukas/python-phoenixdb
Lukáš Lalinský's avatar
Lukáš Lalinský committed
16

17
.build-phoenix-image: &build_phoenix_image
Lukáš Lalinský's avatar
Lukáš Lalinský committed
18 19
  stage: prepare
  script:
20
    - JOB_NAME=($CI_JOB_NAME)
Lukáš Lalinský's avatar
Lukáš Lalinský committed
21
    - cd ci/phoenix
22 23 24 25 26
    - 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
        .
Lukáš Lalinský's avatar
Lukáš Lalinský committed
27
    - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
28
    - docker push $CI_REGISTRY_IMAGE/phoenix:${JOB_NAME[2]}
Lukáš Lalinský's avatar
Lukáš Lalinský committed
29 30 31
  tags:
    - docker-host

32 33 34 35 36
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
37
    HBASE_DIR: hbase-2.0.0-beta-1
38

39 40 41
build phoenix 4.13 image:
  <<: *build_phoenix_image
  variables:
42
    PHOENIX_VERSION: 4.13.1-HBase-1.3
43
    HBASE_VERSION: 1.3.1
44
    HBASE_DIR: 1.3.1
45

46 47 48 49 50
build phoenix 4.12 image:
  <<: *build_phoenix_image
  variables:
    PHOENIX_VERSION: 4.12.0-HBase-1.3
    HBASE_VERSION: 1.3.1
51
    HBASE_DIR: 1.3.1
52

53
build phoenix 4.11 image:
Lukáš Lalinský's avatar
Lukáš Lalinský committed
54
  <<: *build_phoenix_image
55 56 57
  variables:
    PHOENIX_VERSION: 4.11.0-HBase-1.3
    HBASE_VERSION: 1.3.1
58
    HBASE_DIR: 1.3.1
59 60

build phoenix 4.10 image:
Lukáš Lalinský's avatar
Lukáš Lalinský committed
61
  <<: *build_phoenix_image
62 63 64
  variables:
    PHOENIX_VERSION: 4.10.0-HBase-1.2
    HBASE_VERSION: 1.2.6
65
    HBASE_DIR: 1.2.6
66 67

build phoenix 4.9 image:
Lukáš Lalinský's avatar
Lukáš Lalinský committed
68
  <<: *build_phoenix_image
69 70 71
  variables:
    PHOENIX_VERSION: 4.9.0-HBase-1.2
    HBASE_VERSION: 1.2.6
72
    HBASE_DIR: 1.2.6
73 74

build phoenix 4.8 image:
Lukáš Lalinský's avatar
Lukáš Lalinský committed
75
  <<: *build_phoenix_image
76 77 78
  variables:
    PHOENIX_VERSION: 4.8.2-HBase-1.2
    HBASE_VERSION: 1.2.6
79
    HBASE_DIR: 1.2.6
80 81

.test: &test
Lukáš Lalinský's avatar
Lukáš Lalinský committed
82
  image: $CI_REGISTRY_IMAGE/build-env
83 84
  variables:
    PHOENIXDB_TEST_DB_URL: http://phoenix:8765/
85
    PIP_CACHE_DIR: $CI_PROJECT_DIR/cache/
Lukáš Lalinský's avatar
Lukáš Lalinský committed
86
  script:
Lukáš Lalinský's avatar
Lukáš Lalinský committed
87
    - tox -e py27,py35
88 89 90
  cache:
    paths:
      - cache/
Lukáš Lalinský's avatar
Lukáš Lalinský committed
91 92
  tags:
    - docker
93

94 95 96 97 98 99
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

100 101 102 103 104 105
test phoenix 4.13:
  <<: *test
  services:
    - name: $CI_REGISTRY_IMAGE/phoenix:4.13
      alias: phoenix

106 107 108 109 110 111
test phoenix 4.12:
  <<: *test
  services:
    - name: $CI_REGISTRY_IMAGE/phoenix:4.12
      alias: phoenix

112
test phoenix 4.11:
Lukáš Lalinský's avatar
Lukáš Lalinský committed
113
  <<: *test
114 115 116 117 118
  services:
    - name: $CI_REGISTRY_IMAGE/phoenix:4.11
      alias: phoenix

test phoenix 4.10:
Lukáš Lalinský's avatar
Lukáš Lalinský committed
119
  <<: *test
120 121 122 123 124
  services:
    - name: $CI_REGISTRY_IMAGE/phoenix:4.10
      alias: phoenix

test phoenix 4.9:
Lukáš Lalinský's avatar
Lukáš Lalinský committed
125
  <<: *test
126 127 128 129 130
  services:
    - name: $CI_REGISTRY_IMAGE/phoenix:4.9
      alias: phoenix

test phoenix 4.8:
Lukáš Lalinský's avatar
Lukáš Lalinský committed
131
  <<: *test
132 133 134
  services:
    - name: $CI_REGISTRY_IMAGE/phoenix:4.8
      alias: phoenix