Skip to content

Commit

Permalink
Update Travis file to account for pipenv.
Browse files Browse the repository at this point in the history
  • Loading branch information
obi1kenobi committed Dec 24, 2018
1 parent 132a09e commit e560e8c
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,31 @@ dist: xenial
services:
- docker
install:
- pip install -r dev-requirements.txt
- pip install -e .
- pip install --upgrade pip
- pip install setuptools pipenv
- pipenv sync --dev
- pipenv run pip install -e .
before_script:
- docker-compose up -d
matrix:
include:
- name: "Lint and static analysis"
python: "3.6"
script:
- ./scripts/copyright_line_check.sh
- isort --check-only --verbose --recursive graphql_compiler/
- flake8 --config=setup.cfg graphql_compiler/
- pydocstyle graphql_compiler/
- pylint graphql_compiler/
- bandit -r graphql_compiler/
- pipenv run ./scripts/copyright_line_check.sh
- pipenv run isort --check-only --verbose --recursive graphql_compiler/
- pipenv run flake8 --config=setup.cfg graphql_compiler/
- pipenv run pydocstyle graphql_compiler/
- pipenv run pylint graphql_compiler/
- pipenv run bandit -r graphql_compiler/
- name: "Python 2.7 unit tests"
python: "2.7"
script:
- py.test --cov=graphql_compiler graphql_compiler/tests
- pipenv run py.test --cov=graphql_compiler graphql_compiler/tests
- name: "Python 3.6 unit tests"
python: "3.6"
script:
- py.test --cov=graphql_compiler graphql_compiler/tests
- pipenv run py.test --cov=graphql_compiler graphql_compiler/tests
after_success:
- docker-compose down
- coveralls

0 comments on commit e560e8c

Please sign in to comment.