2018-06-22 03:31:33 -06:00
|
|
|
stages:
|
|
|
|
- build
|
2018-06-22 05:56:01 -06:00
|
|
|
- test
|
2018-06-22 03:31:33 -06:00
|
|
|
|
2018-06-23 06:28:57 -06:00
|
|
|
.centos_image_template: ¢os_image_definition
|
|
|
|
# Use official CentOS image https://hub.docker.com/_/centos/.
|
|
|
|
image: centos:latest
|
|
|
|
before_script:
|
|
|
|
- yum update -y
|
|
|
|
- yum install -y which gnome-common gnome-doc-utils glib2-devel intltool
|
|
|
|
gcc-c++ libuuid-devel parted-devel gtkmm24-devel make
|
|
|
|
polkit file
|
|
|
|
|
|
|
|
.build_stage_template: &build_stage_definition
|
2018-06-22 03:31:33 -06:00
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- ./autogen.sh
|
|
|
|
- make
|
|
|
|
- make install
|
2018-06-22 05:56:01 -06:00
|
|
|
|
2018-06-23 06:28:57 -06:00
|
|
|
.test_stage_template: &test_stage_definition
|
2018-06-22 05:56:01 -06:00
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- ./autogen.sh
|
|
|
|
- make
|
2018-06-22 08:27:29 -06:00
|
|
|
# Exclude specific unit test which fails without /dev/disk in Docker images.
|
|
|
|
- export GTEST_FILTER='-BlockSpecialTest.NamedBlockSpecialObjectBySymlinkMatches'
|
2018-06-22 05:56:01 -06:00
|
|
|
- make check
|
|
|
|
- make distcheck
|
2018-06-23 06:28:57 -06:00
|
|
|
|
|
|
|
# Check GParted can be built and installed.
|
|
|
|
centos_build:
|
|
|
|
<<: *centos_image_definition
|
|
|
|
<<: *build_stage_definition
|
|
|
|
|
|
|
|
# Check GParted unit tests and distcheck pass.
|
|
|
|
centos_test:
|
|
|
|
<<: *centos_image_definition
|
|
|
|
<<: *test_stage_definition
|