Skip to content

Commit 98a4798

Browse files
author
Vaughn Dice
authored
Merge pull request #972 from vdice/use-shell-dev
ref(Makefile,.travis.yml): run shellcheck in container
2 parents bf82529 + 482cae8 commit 98a4798

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ branches:
66
- master
77
services:
88
- postgresql
9+
- docker
910
sudo: required
1011
addons:
1112
postgresql: "9.4"
1213
cache: pip
1314
before_install:
14-
- wget "http://ftp.debian.org/debian/pool/main/s/shellcheck/shellcheck_0.3.7-5_amd64.deb"
15-
- sudo dpkg -i shellcheck_0.3.7-5_amd64.deb
1615
- createdb -U postgres deis
1716
install:
1817
- pip install -r rootfs/requirements.txt

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ SHORT_NAME ?= $(COMPONENT)
66

77
include versioning.mk
88

9+
SHELLCHECK_PREFIX := docker run --rm -v ${CURDIR}:/workdir -w /workdir quay.io/deis/shell-dev shellcheck
910
SHELL_SCRIPTS = $(wildcard rootfs/bin/*) $(shell find "rootfs" -name '*.sh') $(wildcard _scripts/*.sh)
1011

1112
# Test processes used in quick unit testing
@@ -60,7 +61,7 @@ test-check:
6061

6162
test-style:
6263
cd rootfs && flake8 --show-pep8 --show-source
63-
shellcheck $(SHELL_SCRIPTS)
64+
${SHELLCHECK_PREFIX} $(SHELL_SCRIPTS)
6465

6566
test-unit:
6667
cd rootfs \

0 commit comments

Comments
 (0)