-
Notifications
You must be signed in to change notification settings - Fork 52
/
.travis.yml
49 lines (45 loc) · 1.04 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
language: minimal
# All available Linux distributions with language minimal:
# Ubuntu 18.04 (Bionic Beaver)
# Ubuntu Xenial 16.04
# Ubuntu Trusty 14.04
# Ubuntu Precise 12.04 has reached EOL and is not supported by Travis.
matrix:
include:
- os: linux
dist: trusty
- os: linux
dist: xenial
- os: linux
dist: bionic
addons:
apt:
packages:
- bash
- dash
- mksh
- shellcheck
script:
#
# Static code check with shellcheck tool
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Checks o.rc for bash, POSIX shell, dash and ksh
- shellcheck -s bash o.rc
- shellcheck -s sh o.rc
- shellcheck -s dash o.rc
- shellcheck -s ksh o.rc
# Checks the helper scripts in resources
- shellcheck resources/*.sh
# Checks the helper scripts in tests
- shellcheck tests/*.sh
#
# Run the defined shell test scripts
#
- tests/scripts_included.sh
#
# Run the defined shunit2 test scripts
#
- tests/start_shunit2.sh bash
- tests/start_shunit2.sh dash
- tests/start_shunit2.sh ksh