forked from glensc/monitoring-plugin-check_domain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (39 loc) · 975 Bytes
/
.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: bash
dist: trusty
addons:
apt:
packages:
- whois
- gawk
- mawk
- original-awk
- mksh
- posh
- dash
- bash
before_install:
# Grab ShellCheck from the Debian repo
# install shellcheck after other packages already installed from Ubuntu repo
# https://github.com/koalaman/shellcheck/issues/941
- curl -sSL "https://ftp-master.debian.org/keys/archive-key-7.0.asc" | sudo -E apt-key add -
- echo "deb http://ftp.us.debian.org/debian unstable main contrib non-free" | sudo tee -a /etc/apt/sources.list > /dev/null
- sudo apt-get update
- sudo apt-get install shellcheck
matrix:
fast_finish: true
env:
- AWK=awk
- AWK=mawk
- AWK=gawk
- AWK=original-awk
- SH=sh
- SH=mksh
- SH=posh
- SH=dash
- SH=bash
script:
- shellcheck check_domain.sh
# shell check knows only certain syntaxes
- 'case "$SH" in sh|bash|dash|ksh) shellcheck -s $SH check_domain.sh;; esac'
- ./test.sh
# vim:ts=2:sw=2:et