Skip to content

Commit

Permalink
.travis.yml: Install coala-bears master
Browse files Browse the repository at this point in the history
The default `install:` phase of Travis CI does
`pip install -r requirements.txt`, which was
duplicated by the custom `before_script:` block.

Place `coala-bears` at the top of requirements.txt
to ensure that its pins are respected, and use
coala bears master.

Remove hack for GitCommitBear which is no longer
necessary.

Closes coala#496
Related to coala/meta#123
  • Loading branch information
jayvdb committed Aug 13, 2018
1 parent 467fe50 commit 2780589
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,22 @@ addons:
- libssl-dev
- python3-dev

before_install:
- cp requirements.txt requirements.orig
- printf '%s\n%s\n%s\n%s\n'
"git+https://github.com/coala/coala"
"git+https://github.com/coala/coala-bears"
"$(cat test-requirements.txt)"
"$(cat requirements.txt)"
> requirements.txt

before_script:
- pip install coala-bears
- pip install -r requirements.txt
- pip install -r test-requirements.txt
# Docker will fail to build if coala-bears is included
# as one of the bears depends on its own version of
# libbrotli which doesnt compile without a lot of deps.
- mv requirements.orig requirements.txt

script:
- sed -i.bak '/bears = GitCommitBear/d' .coafile
- coala --non-interactive -V
- python -m pytest
- docker build -t "corobo" .
Expand Down

0 comments on commit 2780589

Please sign in to comment.