From e0babc62e84b2d2442acff0a8471ede0233415e3 Mon Sep 17 00:00:00 2001 From: Lukas Herman Date: Thu, 22 Jun 2017 11:09:37 -0400 Subject: [PATCH] .coafile: Add YAMLLintBear Add YAMLLintBear to .coafile and fix .travis.yml issues raised by coala Closes https://github.com/coala/docker-coala-base/issues/183 --- .coafile | 4 ++++ .travis.yml | 26 ++++++++++++++++++++------ 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.coafile b/.coafile index 1eb13d4..4e4f61c 100644 --- a/.coafile +++ b/.coafile @@ -2,3 +2,7 @@ bears = GitCommitBear shortlog_trailing_period = False shortlog_regex = ([^:]*|\S+: [A-Z0-9*].*) + +[yml] +bears = YAMLLintBear +files = *.yml, hooks/*.yml diff --git a/.travis.yml b/.travis.yml index a5f1394..712f628 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,10 +23,16 @@ script: cd /coala; python3 -m pytest; cd /coala-bears; rm bears/Constants.py; # There are no tests covering this module - rm bears/c_languages/CSharpLintBear.py tests/c_languages/CSharpLintBearTest.py; - rm bears/java/InferBear.py tests/java/InferBearTest.py; - rm bears/haskell/GhcModBear.py tests/haskell/GhcModBearTest.py; - rm -r bears/verilog tests/verilog/; + rm + bears/c_languages/CSharpLintBear.py + tests/c_languages/CSharpLintBearTest.py + bears/java/InferBear.py + tests/java/InferBearTest.py + bears/haskell/GhcModBear.py + tests/haskell/GhcModBearTest.py; + rm -r + bears/verilog + tests/verilog/; python3 -m pytest --cov --cov-fail-under=100; cd /tmp; svn co https://github.com/githubtraining/hellogitworld.git; @@ -45,7 +51,15 @@ script: - docker run --volume=$(pwd)/.ci/sample:/work --workdir=/work coala-docker - ls -la ./.ci/sample/.coafile - sudo chown $USER ./.ci/sample/.coafile - - echo -e "[fail]\nbears = NoCommentsBear\nfile = **.py" >> ./.ci/sample/.coafile - - /bin/sh -c "! docker run --volume=$(pwd)/.ci/sample:/work --volume=$(pwd)/.ci/bears:/additional_bears --workdir=/work coala-docker" + - > + echo -e + "[fail]\nbears = NoCommentsBear\nfile = **.py" >> ./.ci/sample/.coafile + - > + /bin/sh -c " + ! docker run + --volume=$(pwd)/.ci/sample:/work + --volume=$(pwd)/.ci/bears:/additional_bears + --workdir=/work coala-docker + " notifications: email: false