Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
env:
global:
- CC_TEST_REPORTER_ID=147d129d98f3d606ce69bc151bbeded40dc684fe11e0f5a831f11f6b36680b22
- SQLALCHEMY_DATABASE_URI="sqlite:///:memory:"
language: python
sudo: required
dist: xenial
python: "3.7"
# command to install dependencies
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
install:
- pip install pipenv
- pipenv install --dev
# command to run tests
script:
- flake8 app --statistics --count
- pipenv run pytest
- coverage run --source=app/ -m pytest
after_script:
- coverage xml
- if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ PyYAML = "*"
flask-pytest = "*"
pytest = "*"
dataclasses = "*"
coverage = "*"

[dev-packages]

Expand Down
175 changes: 116 additions & 59 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.