summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-10-22 02:16:22 +0200
committerHaru <haru@dotalux.com>2018-10-22 03:38:25 +0200
commit58afe047cd566fd58a2f8c9ca04ac4d76aa3e102 (patch)
tree29b9b21f3761b7fc22ef70eb74af07d30be6e9c9 /.gitlab-ci.yml
parentd6b400c60fbb5899963a92e3ff115ec1e6cc1b38 (diff)
downloadhercules-58afe047cd566fd58a2f8c9ca04ac4d76aa3e102.tar.gz
hercules-58afe047cd566fd58a2f8c9ca04ac4d76aa3e102.tar.bz2
hercules-58afe047cd566fd58a2f8c9ca04ac4d76aa3e102.tar.xz
hercules-58afe047cd566fd58a2f8c9ca04ac4d76aa3e102.zip
Fix gitlab-ci script for clang-5.0
The package clang-5.0 has been removed from Debian unstable and testing (as buster will ship with 6.0 and 7), and is currently only available in stretch-backports. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml48
1 files changed, 36 insertions, 12 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d9a156298..fb038ea66 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -124,14 +124,22 @@ zero-2018:clang-4.0:
pre_re:clang-5.0:
<<: *branch_exceptions
- <<: *prerequisites
+ before_script:
+ - echo "Building $CI_BUILD_NAME"
+ - uname -a
+ - echo 'deb http://ftp.debian.org/debian stretch-backports main' >> /etc/apt/sources.list
+ - ./tools/ci/retry.sh apt-get update
+ - ./tools/ci/retry.sh apt-get install -t stretch-backports -y -qq clang-5.0
+ - ./tools/ci/retry.sh apt-get install -y -qq $INSTALL_PACKAGES $DEBIAN_COMMON_PACKAGES
+ - ./tools/ci/travis.sh importdb ragnarok ragnarok ragnarok $SQLHOST
+ - ./tools/ci/travis.sh getplugins || true
stage: secondary
- image: debian:unstable
+ image: debian:stretch
services:
- - mariadb:10
+ - mariadb:10.1
variables:
<<: *base_vars
- INSTALL_PACKAGES: clang-5.0 mariadb-client libmariadbclient-dev-compat
+ INSTALL_PACKAGES: mariadb-client libmariadbclient-dev-compat
SQLHOST: mariadb
script:
- ./tools/ci/travis.sh build CC=clang-5.0 --enable-debug --enable-Werror --enable-buildbot --disable-renewal
@@ -139,14 +147,22 @@ pre_re:clang-5.0:
re:clang-5.0:
<<: *branch_exceptions
- <<: *prerequisites
+ before_script:
+ - echo "Building $CI_BUILD_NAME"
+ - uname -a
+ - echo 'deb http://ftp.debian.org/debian stretch-backports main' >> /etc/apt/sources.list
+ - ./tools/ci/retry.sh apt-get update
+ - ./tools/ci/retry.sh apt-get install -t stretch-backports -y -qq clang-5.0
+ - ./tools/ci/retry.sh apt-get install -y -qq $INSTALL_PACKAGES $DEBIAN_COMMON_PACKAGES
+ - ./tools/ci/travis.sh importdb ragnarok ragnarok ragnarok $SQLHOST
+ - ./tools/ci/travis.sh getplugins || true
stage: secondary
- image: debian:unstable
+ image: debian:stretch
services:
- - mariadb:10
+ - mariadb:10.1
variables:
<<: *base_vars
- INSTALL_PACKAGES: clang-5.0 mariadb-client libmariadbclient-dev-compat
+ INSTALL_PACKAGES: mariadb-client libmariadbclient-dev-compat
SQLHOST: mariadb
script:
- ./tools/ci/travis.sh build CC=clang-5.0 --enable-debug --enable-Werror --enable-buildbot
@@ -154,14 +170,22 @@ re:clang-5.0:
zero-2018:clang-5.0:
<<: *branch_exceptions
- <<: *prerequisites
+ before_script:
+ - echo "Building $CI_BUILD_NAME"
+ - uname -a
+ - echo 'deb http://ftp.debian.org/debian stretch-backports main' >> /etc/apt/sources.list
+ - ./tools/ci/retry.sh apt-get update
+ - ./tools/ci/retry.sh apt-get install -t stretch-backports -y -qq clang-5.0
+ - ./tools/ci/retry.sh apt-get install -y -qq $INSTALL_PACKAGES $DEBIAN_COMMON_PACKAGES
+ - ./tools/ci/travis.sh importdb ragnarok ragnarok ragnarok $SQLHOST
+ - ./tools/ci/travis.sh getplugins || true
stage: clients
- image: debian:unstable
+ image: debian:stretch
services:
- - mariadb:10
+ - mariadb:10.1
variables:
<<: *base_vars
- INSTALL_PACKAGES: clang-5.0 mariadb-client libmariadbclient-dev-compat
+ INSTALL_PACKAGES: mariadb-client libmariadbclient-dev-compat
SQLHOST: mariadb
script:
- ./tools/ci/travis.sh build CC=clang-5.0 --enable-debug --enable-Werror --enable-buildbot --enable-packetver-zero --enable-packetver=20180511