raw/ifpga/base: support sensor
[dpdk.git] / .travis.yml
1 language: c
2 cache: ccache
3 compiler:
4   - gcc
5   - clang
6
7 dist: xenial
8
9 os:
10   - linux
11
12 addons:
13   apt:
14     update: true
15     packages: &required_packages
16       - [libnuma-dev, linux-headers-$(uname -r), python3-setuptools, python3-wheel, python3-pip, ninja-build]
17
18 aarch64_packages: &aarch64_packages
19   - *required_packages
20   - [gcc-aarch64-linux-gnu, libc6-dev-arm64-cross]
21
22 extra_packages: &extra_packages
23   - *required_packages
24   - [libbsd-dev, libpcap-dev, libcrypto++-dev, libjansson4]
25
26 build_32b_packages: &build_32b_packages
27   - *required_packages
28   - [gcc-multilib]
29
30 doc_packages: &doc_packages
31   - [doxygen, graphviz, python3-sphinx]
32
33 before_install: ./.ci/${TRAVIS_OS_NAME}-setup.sh
34
35 env:
36   - DEF_LIB="static"
37   - DEF_LIB="shared"
38   - DEF_LIB="static" OPTS="-Denable_kmods=false"
39   - DEF_LIB="shared" OPTS="-Denable_kmods=false"
40   - DEF_LIB="shared" RUN_TESTS=1
41
42 matrix:
43   include:
44   - env: DEF_LIB="static" BUILD_32BIT=1
45     compiler: gcc
46     addons:
47       apt:
48         packages:
49           - *build_32b_packages
50   - env: DEF_LIB="static" OPTS="-Denable_kmods=false" AARCH64=1
51     compiler: gcc
52     addons:
53       apt:
54         packages:
55           - *aarch64_packages
56   - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" AARCH64=1
57     compiler: gcc
58     addons:
59       apt:
60         packages:
61           - *aarch64_packages
62   - env: DEF_LIB="static" EXTRA_PACKAGES=1
63     compiler: gcc
64     addons:
65       apt:
66         packages:
67           - *extra_packages
68   - env: DEF_LIB="shared" EXTRA_PACKAGES=1 RUN_TESTS=1 BUILD_DOCS=1
69     compiler: gcc
70     addons:
71       apt:
72         packages:
73           - *extra_packages
74           - *doc_packages
75   - env: DEF_LIB="static" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
76     compiler: gcc
77     addons:
78       apt:
79         packages:
80           - *extra_packages
81   - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
82     compiler: gcc
83     addons:
84       apt:
85         packages:
86           - *extra_packages
87   - env: DEF_LIB="static" EXTRA_PACKAGES=1
88     compiler: clang
89     addons:
90       apt:
91         packages:
92           - *extra_packages
93   - env: DEF_LIB="shared" EXTRA_PACKAGES=1
94     compiler: clang
95     addons:
96       apt:
97         packages:
98           - *extra_packages
99   - env: DEF_LIB="shared" EXTRA_PACKAGES=1 RUN_TESTS=1 BUILD_DOCS=1
100     compiler: clang
101     addons:
102       apt:
103         packages:
104           - *extra_packages
105           - *doc_packages
106   - env: DEF_LIB="static" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
107     compiler: clang
108     addons:
109       apt:
110         packages:
111           - *extra_packages
112   - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
113     compiler: clang
114     addons:
115       apt:
116         packages:
117           - *extra_packages
118
119
120 script: ./.ci/${TRAVIS_OS_NAME}-build.sh