Skip to content

Commit c41154e

Browse files
committed
travis: use docker to run bash & shellheck
1 parent 6017d69 commit c41154e

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

.travis.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
sudo: false
1+
sudo: required
22
language: bash
3-
addons:
4-
apt:
5-
sources:
6-
- debian-sid
7-
packages:
8-
- shellcheck
3+
services:
4+
- docker
5+
96
script:
107
- "./citest"
8+
119
notifications:
1210
email: false
1311
pushover:

citest

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,26 @@
22

33
set -euo pipefail
44

5+
cd "$(dirname "$0")"
6+
57
bash_scripts=(
68
yank.tmux
79
scripts/*.sh
810
)
911

10-
bash -Dn "${bash_scripts[@]}"
12+
set -x
13+
docker run \
14+
--rm \
15+
--volume="${PWD}:/mnt:ro" \
16+
--workdir="/mnt" \
17+
bash:latest \
18+
bash -Dn "${bash_scripts[@]}"
1119

12-
shellcheck \
20+
docker run \
21+
--rm \
22+
--volume="${PWD}:/mnt:ro" \
23+
--workdir="/mnt" \
24+
koalaman/shellcheck:stable \
1325
--shell=bash \
1426
--external-sources \
1527
--color=always \

0 commit comments

Comments
 (0)