2018-06-22 03:31:33 -06:00
|
|
|
# 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
|
2018-06-22 05:56:01 -06:00
|
|
|
polkit file
|
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
|
|
|
|
|
|
|
# Check GParted can be built and installed.
|
|
|
|
build:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- ./autogen.sh
|
|
|
|
- make
|
|
|
|
- make install
|
2018-06-22 05:56:01 -06:00
|
|
|
|
|
|
|
# Check GParted unit tests and distcheck pass.
|
|
|
|
test:
|
|
|
|
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
|