Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ branches:
jobs:
include:
- stage: Lint & Test
- script: ./hack/tf-lint.sh
Copy link
Member

@wking wking Aug 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first entry after - stage doesn't need a hyphen (so - script -> script here). The hyphen you're adding is causing Travis to run this dummy job.

name: Terraform lint
script: docker run -v $(pwd):/data -t quay.io/coreos/tflint
- script: ./hack/yaml-lint.sh
name: YAML lint
- script: ./hack/shellcheck.sh
Expand Down
6 changes: 6 additions & 0 deletions hack/tf-lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
if [ "$IS_CONTAINER" != "" ]; then
tflint
else
docker run -t --rm -v "$(pwd)":/data --env IS_CONTAINER='TRUE' --entrypoint sh quay.io/coreos/tflint ./hack/tf-lint.sh
fi;