Skip to content

Commit a869645

Browse files
committed
Create .travis.yml with hadolint and shellcheck
1 parent 6b4fb13 commit a869645

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
sudo: required
2+
3+
services:
4+
- docker
5+
6+
script:
7+
- |
8+
set -e
9+
for path in `find . -name Dockerfile`; do
10+
echo $path
11+
docker run --rm -i lukasmartinelli/hadolint < $path
12+
done
13+
- |
14+
set -e
15+
for path in `find . -name \*.sh`; do
16+
echo $path
17+
docker run --rm -i -v "$PWD":/mnt lukasmartinelli/hadolint shellcheck /mnt/$path
18+
done

0 commit comments

Comments
 (0)