.gitlab-ci.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. # Licensed to the Apache Software Foundation (ASF) under one or more
  2. # contributor license agreements. See the NOTICE file distributed with
  3. # this work for additional information regarding copyright ownership.
  4. # The ASF licenses this file to You under the Apache License, Version 2.0
  5. # (the "License"); you may not use this file except in compliance with
  6. # the License. You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. stages:
  16. - prepare
  17. - test
  18. build build-env image:
  19. stage: prepare
  20. script:
  21. - cd ci/build-env
  22. - docker build -t ${CI_REGISTRY_IMAGE}/build-env .
  23. - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
  24. - docker push $CI_REGISTRY_IMAGE/build-env
  25. tags:
  26. - docker-host
  27. only:
  28. - master@lukas/python-phoenixdb
  29. .build-phoenix-image: &build_phoenix_image
  30. stage: prepare
  31. script:
  32. - JOB_NAME=($CI_JOB_NAME)
  33. - cd ci/phoenix
  34. - docker build -t ${CI_REGISTRY_IMAGE}/phoenix:${JOB_NAME[2]}
  35. --build-arg PHOENIX_VERSION=$PHOENIX_VERSION
  36. --build-arg HBASE_VERSION=$HBASE_VERSION
  37. --build-arg HBASE_DIR=$HBASE_DIR
  38. .
  39. - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
  40. - docker push $CI_REGISTRY_IMAGE/phoenix:${JOB_NAME[2]}
  41. tags:
  42. - docker-host
  43. build phoenix 5.0.0-alpha-HBase-2.0 image:
  44. <<: *build_phoenix_image
  45. variables:
  46. PHOENIX_VERSION: 5.0.0-alpha-HBase-2.0
  47. HBASE_VERSION: 2.0.0-beta-1
  48. HBASE_DIR: hbase-2.0.0-beta-1
  49. build phoenix 4.13 image:
  50. <<: *build_phoenix_image
  51. variables:
  52. PHOENIX_VERSION: 4.13.1-HBase-1.3
  53. HBASE_VERSION: 1.3.1
  54. HBASE_DIR: 1.3.1
  55. build phoenix 4.12 image:
  56. <<: *build_phoenix_image
  57. variables:
  58. PHOENIX_VERSION: 4.12.0-HBase-1.3
  59. HBASE_VERSION: 1.3.1
  60. HBASE_DIR: 1.3.1
  61. build phoenix 4.11 image:
  62. <<: *build_phoenix_image
  63. variables:
  64. PHOENIX_VERSION: 4.11.0-HBase-1.3
  65. HBASE_VERSION: 1.3.1
  66. HBASE_DIR: 1.3.1
  67. build phoenix 4.10 image:
  68. <<: *build_phoenix_image
  69. variables:
  70. PHOENIX_VERSION: 4.10.0-HBase-1.2
  71. HBASE_VERSION: 1.2.6
  72. HBASE_DIR: 1.2.6
  73. build phoenix 4.9 image:
  74. <<: *build_phoenix_image
  75. variables:
  76. PHOENIX_VERSION: 4.9.0-HBase-1.2
  77. HBASE_VERSION: 1.2.6
  78. HBASE_DIR: 1.2.6
  79. build phoenix 4.8 image:
  80. <<: *build_phoenix_image
  81. variables:
  82. PHOENIX_VERSION: 4.8.2-HBase-1.2
  83. HBASE_VERSION: 1.2.6
  84. HBASE_DIR: 1.2.6
  85. .test: &test
  86. image: $CI_REGISTRY_IMAGE/build-env
  87. variables:
  88. PHOENIXDB_TEST_DB_URL: http://phoenix:8765/
  89. PIP_CACHE_DIR: $CI_PROJECT_DIR/cache/
  90. script:
  91. - tox -e py27,py35
  92. cache:
  93. paths:
  94. - cache/
  95. tags:
  96. - docker
  97. test phoenix 5.0.0-alpha-HBase-2.0:
  98. <<: *test
  99. services:
  100. - name: $CI_REGISTRY_IMAGE/phoenix:5.0.0-alpha-HBase-2.0
  101. alias: phoenix
  102. test phoenix 4.13:
  103. <<: *test
  104. services:
  105. - name: $CI_REGISTRY_IMAGE/phoenix:4.13
  106. alias: phoenix
  107. test phoenix 4.12:
  108. <<: *test
  109. services:
  110. - name: $CI_REGISTRY_IMAGE/phoenix:4.12
  111. alias: phoenix
  112. test phoenix 4.11:
  113. <<: *test
  114. services:
  115. - name: $CI_REGISTRY_IMAGE/phoenix:4.11
  116. alias: phoenix
  117. test phoenix 4.10:
  118. <<: *test
  119. services:
  120. - name: $CI_REGISTRY_IMAGE/phoenix:4.10
  121. alias: phoenix
  122. test phoenix 4.9:
  123. <<: *test
  124. services:
  125. - name: $CI_REGISTRY_IMAGE/phoenix:4.9
  126. alias: phoenix
  127. test phoenix 4.8:
  128. <<: *test
  129. services:
  130. - name: $CI_REGISTRY_IMAGE/phoenix:4.8
  131. alias: phoenix