buildtools: make experimental symbol check lighter
[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 doc_packages: &doc_packages
27   - [doxygen, graphviz, python3-sphinx]
28
29 before_install: ./.ci/${TRAVIS_OS_NAME}-setup.sh
30
31 env:
32   - DEF_LIB="static"
33   - DEF_LIB="shared"
34   - DEF_LIB="static" OPTS="-Denable_kmods=false"
35   - DEF_LIB="shared" OPTS="-Denable_kmods=false"
36   - DEF_LIB="shared" RUN_TESTS=1
37
38 matrix:
39   include:
40   - env: DEF_LIB="static" OPTS="-Denable_kmods=false" AARCH64=1
41     compiler: gcc
42     addons:
43       apt:
44         packages:
45           - *aarch64_packages
46   - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" AARCH64=1
47     compiler: gcc
48     addons:
49       apt:
50         packages:
51           - *aarch64_packages
52   - env: DEF_LIB="static" EXTRA_PACKAGES=1
53     compiler: gcc
54     addons:
55       apt:
56         packages:
57           - *extra_packages
58   - env: DEF_LIB="shared" EXTRA_PACKAGES=1 RUN_TESTS=1 BUILD_DOCS=1
59     compiler: gcc
60     addons:
61       apt:
62         packages:
63           - *extra_packages
64           - *doc_packages
65   - env: DEF_LIB="static" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
66     compiler: gcc
67     addons:
68       apt:
69         packages:
70           - *extra_packages
71   - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
72     compiler: gcc
73     addons:
74       apt:
75         packages:
76           - *extra_packages
77   - env: DEF_LIB="static" EXTRA_PACKAGES=1
78     compiler: clang
79     addons:
80       apt:
81         packages:
82           - *extra_packages
83   - env: DEF_LIB="shared" EXTRA_PACKAGES=1
84     compiler: clang
85     addons:
86       apt:
87         packages:
88           - *extra_packages
89   - env: DEF_LIB="shared" EXTRA_PACKAGES=1 RUN_TESTS=1 BUILD_DOCS=1
90     compiler: clang
91     addons:
92       apt:
93         packages:
94           - *extra_packages
95           - *doc_packages
96   - env: DEF_LIB="static" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
97     compiler: clang
98     addons:
99       apt:
100         packages:
101           - *extra_packages
102   - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
103     compiler: clang
104     addons:
105       apt:
106         packages:
107           - *extra_packages
108
109
110 script: ./.ci/${TRAVIS_OS_NAME}-build.sh