-
Notifications
You must be signed in to change notification settings - Fork 175
/
.travis.yml
44 lines (44 loc) · 1.39 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
language: c
sudo: required
compiler:
- gcc
matrix:
include:
- os: linux
dist: xenial
- os: linux
dist: trusty
- os: linux
dist: bionic
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y dpkg-dev debhelper dkms lintian sparse fakeroot
- sudo apt-get install linux-headers-`uname -r`
- pip install --user ply GitPython
before_script:
- |-
git clone --quiet --depth=1 \
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git \
../linux
script:
- |-
../linux/scripts/checkpatch.pl \
--ignore COMPLEX_MACRO,TRAILING_STATEMENTS \
--show-types \
-f *.[hc] |&
tee ../checkpatch.log ||
[ $? == 1 ] &&
! grep -Eiq '^[a-z0-9_]*error:' ../checkpatch.log
- make C=1 W=1 KCFLAGS=-Werror
# Testing dkms install/uninstall
- sudo make dkms_install
- sudo make dkms_uninstall
# Testing Debian package installation, configuration, and uninstall
- dpkg-buildpackage -b -uc
# Checks Debian packages for common inconsistencies and errors
- lintian -i -I --profile debian --show-overrides ../digimend-dkms_*.changes
- sudo apt-get install -y ../digimend-dkms_*_all.deb
- sudo apt-get remove -y digimend-dkms
- make dist
- sudo make install
- sudo make uninstall