File: ci.sh

package info (click to toggle)
openrazer 2.9.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,176 kB
  • sloc: python: 9,377; ansic: 8,091; sh: 580; makefile: 179; xml: 141
file content (46 lines) | stat: -rwxr-xr-x 930 bytes parent folder | download | duplicates (2)
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
#!/bin/bash -ex
# -e = exit on error
# -x = print all commands

dir=$(dirname $0)

# Update the package index
./$dir/apt-update.sh

# Install dependencies
./$dir/install-check-deps.sh
./$dir/install-driver-deps.sh
./$dir/install-daemon-deps.sh

# Check the formatting of the driver
./$dir/check-astyle-formatting.sh
./$dir/check-autopep8-formatting.sh
# Check with pylint for errors
./$dir/check-pylint.sh

# Check for duplicate fake driver serials
./$dir/test-duplicate-fake-driver-serials.sh

# Check for hex casing issues
./$dir/test-hex-casing.sh

# Check for auto-generated files
./$dir/test-auto-generate.sh

# Launch dbus
eval $(dbus-launch --sh-syntax)

# Compile the kernel driver
./$dir/compile-driver.sh

# Setup the fake driver
./$dir/setup-fakedriver.sh

# Launch the daemon
./$dir/launch-daemon.sh

# Wait for the daemon to be ready
sleep 10

# Run a simple check to see if the daemon is alive
./$dir/test-daemon.sh