-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
30 lines (28 loc) · 937 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
sudo: required
services:
- docker
env:
global:
- CI_ROOT="$TRAVIS_BUILD_DIR/ci/"
jobs:
include:
- stage: Build & test
name: CentOS 7
language: bash
env:
- CENTOS_RELEASE="centos7"
- CONT_NAME="systemd-centos-$CENTOS_RELEASE"
- DOCKER_EXEC="docker exec -ti $CONT_NAME"
before_install:
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- docker --version
install:
- if [ -f meson.build ]; then RHEL_VERSION=rhel8; else RHEL_VERSION=rhel7; fi
- $CI_ROOT/travis-centos-${RHEL_VERSION}.sh SETUP
script:
- set -e
# Build systemd
- $CI_ROOT/travis-centos-${RHEL_VERSION}.sh RUN
- set +e
after_script:
- $CI_ROOT/travis-centos-${RHEL_VERSION}.sh CLEANUP