forked from iputils/iputils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
69 lines (56 loc) · 2.09 KB
/
.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
sudo: required
language: c
services:
- docker
matrix:
include:
# cross compilation
# NOTE: cannot set cross compiler as compiler variable (meson tests also native build)
- os: linux
env: DISTRO=debian:unstable VARIANT=cross-compile.aarch64
compiler: gcc
- os: linux
env: DISTRO=debian:testing VARIANT=cross-compile.ppc64le
compiler: gcc
# musl (native)
- os: linux
# Message: WARNING: xsltproc: cannot process http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl
# doc/meson.build:70:1: ERROR: Problem encountered: Docs cannot be built: xsltproc does not work correctly
env: DISTRO=alpine:latest EXTRA_BUILD_OPTS='-DBUILD_HTML_MANS=false -DBUILD_MANS=false'
compiler: gcc
# glibc (gcc/clang)
- os: linux
env: DISTRO=opensuse/tumbleweed
compiler: gcc
- os: linux
env: DISTRO=ubuntu:xenial
compiler: clang
- os: linux
env: DISTRO=ubuntu:eoan
compiler: gcc
- os: linux
env: DISTRO=fedora:latest
compiler: clang
- os: linux
env: DISTRO=centos:7
compiler: gcc
- os: linux
env: DISTRO=debian:testing
compiler: gcc
- os: linux
env: DISTRO=debian:stable
compiler: gcc
- os: linux
env: DISTRO=debian:oldstable
compiler: clang
before_install:
- DIR="/usr/src/iputils"
- printf "FROM $DISTRO\nRUN mkdir -p $DIR\nWORKDIR $DIR\nCOPY . $DIR\n" > Dockerfile
- echo "cat Dockerfile"; cat Dockerfile
- docker build -t iputils .
script:
- INSTALL="${DISTRO%%:*}"
- INSTALL="${INSTALL%%/*}"
- DISTRO_VERSION="${DISTRO#*:}"
- case $VARIANT in cross-compile*) BUILD="cross";; i386) BUILD="32";; *) BUILD="native";; esac
- docker run -it iputils /bin/sh -c "cd travis && DISTRO_VERSION=\"$DISTRO_VERSION\" ./$INSTALL.sh && if [ \"$VARIANT\" ]; then ./$INSTALL.$VARIANT.sh; fi && CC=$CC EXTRA_BUILD_OPTS=\"$EXTRA_BUILD_OPTS\" ../build.sh"