Skip to content

Commit

Permalink
.travis.yml: Install using pip once
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.

Closes #496
Related to coala/meta#123
  • Loading branch information
jayvdb committed Aug 13, 2018
1 parent 467fe50 commit 7baf16f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ addons:
- libssl-dev
- python3-dev

before_script:
- pip install coala-bears
- pip install -r requirements.txt
- pip install -r test-requirements.txt
before_install:
- 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

script:
- sed -i.bak '/bears = GitCommitBear/d' .coafile
- coala --non-interactive -V
- python -m pytest
- docker build -t "corobo" .
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
pyopenssl
git+https://github.com/errbotio/errbot@a0f35732484c8c0692e123c48653517cffa21a42
wolframalpha
github3.py~=1.0.0
Expand Down

0 comments on commit 7baf16f

Please sign in to comment.