Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
Run CI against the lower bounds of dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vfaronov committed Jul 25, 2016
1 parent 8e451c0 commit ebfc0e8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ python:
- "3.4"
- "3.5"

env:
- REQUIRES=minimum
- REQUIRES=normal

install:
- test "$REQUIRES" = minimum && tools/minimum_requires.sh || true
- pip install -e .
- pip install -r tools/requirements.txt

Expand Down
11 changes: 11 additions & 0 deletions tools/minimum_requires.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

# Install the lowest versions of requirements permitted by HTTPolice.
# This checks that these lower bounds are up-to-date.

set -e

test -e setup.py || { echo 'must run from repo root' >&2; exit 1; }

sed -e 's/>=/==/g' <requirements.in >minimum_requirements.txt
pip install -r minimum_requirements.txt

0 comments on commit ebfc0e8

Please sign in to comment.