-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (24 loc) · 830 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
env:
global:
- CC_TEST_REPORTER_ID=18007e474cdfcf70da58a682805aff9f88216339b0dce34454dc0bfcc988ea91
- APP_SETTINGS="development"
- SECRET_KEY="mvangiffj38kncliu3yt7gvLWDNTDISFJWrk'\flQHJsdnlQI2ROH"
language: python
# python version
python:
- "3.6"
# command to install dependencies
install:
- pip install -r requirements.txt
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
# command to run tests
script:
- coverage run --source=app.api.v1 -m pytest app/tests/v1 -v -W error::UserWarning && coverage report
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
# Post coverage results to coverage.io
after_success:
- coveralls