Commit 8bddef04 authored by Otto Kekäläinen's avatar Otto Kekäläinen
Browse files

Use Ubuntu releases in Gitlab-CI where possible

parent 13a23daf
...@@ -9,8 +9,8 @@ variables: ...@@ -9,8 +9,8 @@ variables:
stages: stages:
- build on Stretch (like Bionic) - build on Stretch (like Bionic)
- test quality - test quality
- upgrade in Stretch (like Bionic) - upgrade in Bionic
- upgrade from Jessie (like Xenial) - upgrade from Xenial
build package: build package:
stage: build on Stretch (like Bionic) stage: build on Stretch (like Bionic)
...@@ -56,7 +56,7 @@ run lintian: ...@@ -56,7 +56,7 @@ run lintian:
fresh install: fresh install:
stage: test quality stage: test quality
image: debian:${RELEASE} image: ubuntu:bionic
artifacts: artifacts:
when: always when: always
name: "$CI_BUILD_NAME" name: "$CI_BUILD_NAME"
...@@ -86,7 +86,7 @@ test basic features: ...@@ -86,7 +86,7 @@ test basic features:
stage: test quality stage: test quality
dependencies: dependencies:
- build package - build package
image: debian:${RELEASE} image: ubuntu:bionic
artifacts: artifacts:
when: always when: always
name: "$CI_BUILD_NAME" name: "$CI_BUILD_NAME"
...@@ -155,7 +155,7 @@ build mariadbclient consumer Python-MySQLdb: ...@@ -155,7 +155,7 @@ build mariadbclient consumer Python-MySQLdb:
stage: test quality stage: test quality
dependencies: dependencies:
- build package - build package
image: debian:${RELEASE} image: ubuntu:bionic
script: script:
- cd ${WORKING_DIR} # Don't repeat this step, it's just cd ./debian/output - cd ${WORKING_DIR} # Don't repeat this step, it's just cd ./debian/output
- mkdir -p debug # Ensure dir exists before using it - mkdir -p debug # Ensure dir exists before using it
...@@ -172,10 +172,10 @@ build mariadbclient consumer Python-MySQLdb: ...@@ -172,10 +172,10 @@ build mariadbclient consumer Python-MySQLdb:
GIT_STRATEGY: none GIT_STRATEGY: none
mariadb-10.1.x to mariadb-10.1.y upgrade: mariadb-10.1.x to mariadb-10.1.y upgrade:
stage: upgrade in Stretch (like Bionic) stage: upgrade in Bionic
dependencies: dependencies:
- build package - build package
image: debian:stretch image: ubuntu:bionic
artifacts: artifacts:
when: always when: always
name: "$CI_BUILD_NAME" name: "$CI_BUILD_NAME"
...@@ -185,9 +185,9 @@ mariadb-10.1.x to mariadb-10.1.y upgrade: ...@@ -185,9 +185,9 @@ mariadb-10.1.x to mariadb-10.1.y upgrade:
- sed -i "s/101/0/g" -i /usr/sbin/policy-rc.d # Enable automatic restarts from maint scripts - sed -i "s/101/0/g" -i /usr/sbin/policy-rc.d # Enable automatic restarts from maint scripts
- cd ${WORKING_DIR} # Don't repeat this step, it's just cd ./debian/output - cd ${WORKING_DIR} # Don't repeat this step, it's just cd ./debian/output
- apt-get update - apt-get update
# Install almost everything currently in Debian Stretch # Install almost everything currently in Ubuntu Bionic
- apt-get install -y 'default-mysql*' 'mariadb-*' 'libmariadbd*' 'libmariadbclient*' - apt-get install -y 'mariadb-*' 'libmariadbd*' 'libmariadbclient*'
# Verify installation of MariaDB currently in Debian Stretch # Verify installation of MariaDB currently in Ubuntu Bionic
- dpkg -l | grep -iE 'maria|mysql|galera' || true # List installed - dpkg -l | grep -iE 'maria|mysql|galera' || true # List installed
- service mysql status - service mysql status
- mariadb --skip-column-names -e "select @@version, @@version_comment" - mariadb --skip-column-names -e "select @@version, @@version_comment"
...@@ -209,10 +209,10 @@ mariadb-10.1.x to mariadb-10.1.y upgrade: ...@@ -209,10 +209,10 @@ mariadb-10.1.x to mariadb-10.1.y upgrade:
GIT_STRATEGY: none GIT_STRATEGY: none
mariadb-10.0 to mariadb-10.1 upgrade: mariadb-10.0 to mariadb-10.1 upgrade:
stage: upgrade from Jessie (like Xenial) stage: upgrade from Xenial
dependencies: dependencies:
- build package - build package
image: debian:jessie image: ubuntu:xenial
artifacts: artifacts:
when: always when: always
name: "$CI_BUILD_NAME" name: "$CI_BUILD_NAME"
...@@ -222,15 +222,15 @@ mariadb-10.0 to mariadb-10.1 upgrade: ...@@ -222,15 +222,15 @@ mariadb-10.0 to mariadb-10.1 upgrade:
- sed -i "s/101/0/g" -i /usr/sbin/policy-rc.d # Enable automatic restarts from maint scripts - sed -i "s/101/0/g" -i /usr/sbin/policy-rc.d # Enable automatic restarts from maint scripts
- cd ${WORKING_DIR} # Don't repeat this step, it's just cd ./debian/output - cd ${WORKING_DIR} # Don't repeat this step, it's just cd ./debian/output
- apt-get update - apt-get update
# Install almost everything currently in Debian Jessie # Install almost everything currently in Ubuntu Xenial
- apt-get install -y 'mariadb-*' 'libmariadb*' - apt-get install -y 'mariadb-*' 'libmariadb*'
# Verify installation of MariaDB from Jessie # Verify installation of MariaDB from Xenail
- dpkg -l | grep -iE 'maria|mysql|galera' || true # List installed - dpkg -l | grep -iE 'maria|mysql|galera' || true # List installed
- service mysql status - service mysql status
- mysql --skip-column-names -e "select @@version, @@version_comment" - mysql --skip-column-names -e "select @@version, @@version_comment"
- echo 'SHOW DATABASES;' | mysql - echo 'SHOW DATABASES;' | mysql
# Install MariaDB built in this commit # Install MariaDB built in this commit
- sed 's/jessie/stretch/g' -i /etc/apt/sources.list # Enable next Debian release - sed 's/xenial/bionic/g' -i /etc/apt/sources.list # Enable next Debian release
- apt-get update; apt-get install -y apt # Install apt 1.4.9 so the wildcard command below works - apt-get update; apt-get install -y apt # Install apt 1.4.9 so the wildcard command below works
- apt-get install -y ./*.deb || true # Allow to proceed so debug artifacts get collected - apt-get install -y ./*.deb || true # Allow to proceed so debug artifacts get collected
# Verify installation of MariaDB built in this commit # Verify installation of MariaDB built in this commit
...@@ -248,10 +248,10 @@ mariadb-10.0 to mariadb-10.1 upgrade: ...@@ -248,10 +248,10 @@ mariadb-10.0 to mariadb-10.1 upgrade:
GIT_STRATEGY: none GIT_STRATEGY: none
mysql-5.5 to mariadb-10.1 upgrade: mysql-5.5 to mariadb-10.1 upgrade:
stage: upgrade from Jessie (like Xenial) stage: upgrade from Xenial
dependencies: dependencies:
- build package - build package
image: debian:jessie image: ubuntu:xenial
artifacts: artifacts:
when: always when: always
name: "$CI_BUILD_NAME" name: "$CI_BUILD_NAME"
...@@ -262,13 +262,13 @@ mysql-5.5 to mariadb-10.1 upgrade: ...@@ -262,13 +262,13 @@ mysql-5.5 to mariadb-10.1 upgrade:
- cd ${WORKING_DIR} # Don't repeat this step, it's just cd ./debian/output - cd ${WORKING_DIR} # Don't repeat this step, it's just cd ./debian/output
- apt-get update - apt-get update
- apt-get install -y mysql-server - apt-get install -y mysql-server
# Verify installation of MySQL from Jessie # Verify installation of MySQL from Xenial
- dpkg -l | grep -iE 'maria|mysql|galera' || true # List installed - dpkg -l | grep -iE 'maria|mysql|galera' || true # List installed
- service mysql status - service mysql status
- mysql --skip-column-names -e "select @@version, @@version_comment" - mysql --skip-column-names -e "select @@version, @@version_comment"
- echo 'SHOW DATABASES;' | mysql - echo 'SHOW DATABASES;' | mysql
# Install MariaDB built in this commit # Install MariaDB built in this commit
- sed 's/jessie/stretch/g' -i /etc/apt/sources.list # Enable next Debian release - sed 's/xenial/bionic/g' -i /etc/apt/sources.list # Enable next Ubuntu release
- apt-get update; apt-get install -y apt # Install apt 1.4.9 so the wildcard command below works - apt-get update; apt-get install -y apt # Install apt 1.4.9 so the wildcard command below works
- apt-get install -y ./*.deb || true # Allow to proceed so debug artifacts get collected - apt-get install -y ./*.deb || true # Allow to proceed so debug artifacts get collected
# Verify installation of MariaDB built in this commit # Verify installation of MariaDB built in this commit
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment