This repository has been archived by the owner on Oct 22, 2019. It is now read-only.
forked from networkupstools/nut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
181 lines (170 loc) · 4.42 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# Travis CI script
################################################################################
# This file is based on a template used by zproject, but isn't auto-generated. #
################################################################################
language:
- c
cache:
- ccache
os:
- linux
sudo: false
# Tests for cppunit require C++11 which requires gcc-4.8 or newer
# This is available in either "trusty" or newer distros, or in "docker" envs
#dist: trusty
services:
- docker
# Common required packages for all common scenarios
# Note that YAML lists may be named with & and referenced with * characters;
# but without such links, every list is complete and unique (meaning that
# matrix special cases define their own settings, not append to common ones).
# See https://github.com/travis-ci/travis-ci/issues/3505
addons:
apt:
packages: &deps_driverlibs
- git
- ccache
- libcppunit-dev
- libcppunit-subunit-dev
- libneon27
- libneon27-dev
- libltdl7
- libltdl-dev
- libi2c-dev
- lua5.1
- liblua5.1-0-dev
- libsnmp-dev
- libfreeipmi-dev
- libipmimonitoring-dev
- libusb-dev
- linux-libc-dev
- libpowerman0-dev
- libavahi-common-dev
- libavahi-core-dev
- libavahi-client-dev
- libgd2-xpm-dev
- libpng-dev
- libjpeg-dev
- libfreetype6-dev
- libxpm-dev
- libxml2-utils
- libmodbus-dev
# Define at least two jobs in the matrix, to avoid a failing job
# with "no environment variables set" and have them built (one
# is too few); but others are listed below to prioritize the
# longer jobs to start first as faster ones complete in parallel.
env:
global:
- CI_TIME=true
- CI_TRACE=false
matrix:
- BUILD_TYPE=default
- BUILD_TYPE=default-tgt:distcheck-light
# Builds with customized setups
# Note that doc-related builds take the longest, and Travis CI cloud
# runs only a few sub-jobs in parallel, so we want the withdoc and
# perhaps spellcheck jobs to start first, and while they are still in
# progress, others are spawned and finished - reducing overall job TTL.
# Note that the nut-driver-enumerator tests should be tried in at least
# the shell interpreters reasonable for default setups of Solaris/illumos
# (ksh) and Linux (bash, dash, etc.) common distros.
matrix:
include:
- env: BUILD_TYPE=default-withdoc
os: linux
addons:
apt:
packages: &deps_gendocs
- asciidoc
- xsltproc
- dblatex
- docbook-xsl
- docbook-xsl-ns
- source-highlight
- libxml2-utils
- env: BUILD_TYPE=default-spellcheck
os: linux
addons:
apt:
packages: &deps_aspell
- aspell
- aspell-en
- env: BUILD_TYPE=default-shellcheck
os: linux
addons:
apt:
packages:
- coreutils
- file
#TBD# - shellcheck
- env: BUILD_TYPE=default-tgt:distcheck-valgrind
os: linux
sudo: false
services:
- docker
addons:
apt:
packages:
- *deps_driverlibs
- valgrind
# Other quicker builds in standard env follow:
- env: BUILD_TYPE=nut-driver-enumerator-test SHELL_PROGS=bash
os: linux
services:
- docker
addons:
apt:
packages:
- bash
- env: BUILD_TYPE=nut-driver-enumerator-test SHELL_PROGS=ksh
os: linux
services:
- docker
addons:
apt:
packages:
- ksh
- env: BUILD_TYPE=nut-driver-enumerator-test SHELL_PROGS=dash
os: linux
services:
- docker
addons:
apt:
packages:
- dash
- env: BUILD_TYPE=nut-driver-enumerator-test SHELL_PROGS=ash
os: linux
services:
- docker
addons:
apt:
packages:
- ash
- env: BUILD_TYPE=default-nodoc
os: linux
addons:
apt:
packages:
- *deps_driverlibs
- env: BUILD_TYPE=default-alldrv
os: linux
sudo: false
services:
- docker
addons:
apt:
packages:
- *deps_driverlibs
- env:
- BUILD_TYPE=default-tgt:distcheck-light
- NO_PKG_CONFIG=true
os: linux
sudo: true
addons:
apt:
packages:
- *deps_driverlibs
before_install:
- if [ $TRAVIS_OS_NAME == "osx" ] ; then brew update; brew install binutils asciidoc docbook-xsl ; XML_CATALOG_FILES=/usr/local/etc/xml/catalog ; export XML_CATALOG_FILES ; fi
# Hand off to generated script for each BUILD_TYPE
script: ./ci_build.sh