Skip to content

Commit

Permalink
.coafile: Add YAMLLintBear
Browse files Browse the repository at this point in the history
Add YAMLLintBear to .coafile and
fix .travis.yml issues raised by coala

Closes #183
  • Loading branch information
lherman-cs committed Jun 22, 2017
1 parent 51fb17d commit 6d9a88a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .coafile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
bears = GitCommitBear
shortlog_trailing_period = False
shortlog_regex = ([^:]*|\S+: [A-Z0-9*].*)

[yml]
bears = YAMLLintBear
files = *.yml, hooks/*.yml
26 changes: 20 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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

0 comments on commit 6d9a88a

Please sign in to comment.