Skip to content

Commit d6346c8

Browse files
committed
travis: added syntax and shellcheck
1 parent 661cede commit d6346c8

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
sudo: false
2+
language: perl
3+
4+
before_install:
5+
- sudo apt-get -qq update
6+
- sudo apt-get install -y shellcheck bash
7+
8+
script:
9+
- ./citest
10+
11+
notifications:
12+
email:
13+
on_success: never
14+
on_failure: change

citest

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
bash_scripts=(
6+
yank.tmux
7+
scripts/*.sh
8+
)
9+
10+
bash -Dn "${bash_scripts[@]}"
11+
12+
shellcheck \
13+
--shell=bash \
14+
--external-sources \
15+
--color=always \
16+
"${bash_scripts[@]}"
17+
18+
# EOF

0 commit comments

Comments
 (0)