File: .travis.yml

package info (click to toggle)
elogind 241.3-1+debian1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 9,044 kB
  • sloc: ansic: 102,512; xml: 15,615; python: 481; sh: 260; makefile: 38; awk: 29; perl: 17
file content (34 lines) | stat: -rw-r--r-- 1,205 bytes parent folder | download
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
31
32
33
34
sudo: true
language: c
env:
  matrix:
  - DIST: voidlinux
  - DIST: voidlinux-musl
services:
- docker
before_install:
- docker run -d --name test-img -v $(pwd):/travis voidlinux/$DIST:latest tail -f /dev/null
- docker ps
install:
- docker exec -t test-img sh -c "xbps-install -Suy acl-devel eudev-libudev-devel gettext-devel
  libglib-devel libcap-devel libseccomp-devel pam-devel docbook-xsl gettext-devel
  git gperf intltool libxslt m4 pkg-config shadow glib-devel meson base-devel bash-completion
  pcre2-devel polkit-devel kexec-tools valgrind-devel libaudit-devel util-linux"
script:
- docker exec -t test-img sh -c "
   echo 'dcb30309cd6c8b7cc20383d85a5c7012' > /etc/machine-id &&
   echo 'dummy-file' > /etc/os-release &&
   mkdir -p /run/systemd &&
   echo 'docker' > /run/systemd/container"
- docker exec -it test-img sh -c "
   cd /travis &&
   meson --werror -Dlog-trace=true -Dtests=unsafe -Dslow-tests=true _build"
- docker exec -it test-img sh -c "
   cd /travis &&
   ninja -C _build"
- docker exec -e "TRAVIS=$TRAVIS" -it test-img sh -c "
   cd /travis &&
   ninja -C _build test"
- docker exec -it test-img sh -c "
   cd /travis &&
   env DESTDIR=$(pwd)/install ninja -C _build install"