-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
28 lines (28 loc) · 954 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
language: python
python:
- "3.6"
services:
- postgresql
# environment variables
env:
global:
- APP_SETTINGS=development
- DATABASE_URL=postgresql://postgres:arsenal2016@localhost/yummy_api
- CODECLIMATE_REPO_TOKEN=24acda37833b8e07451a762563a0b6e9d7978cfa
- CC_TEST_REPORTER_ID=fe8a8606e6a88ce8581137a2755af2d6f036d0bfd1ce6e24e0ce307504e69360
# command to install app dependencies for envs
install:
- pip install -r requirements.txt
before_script:
- "psql -c 'create database yummy_api_test;' -U postgres"
- 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:
- nosetests -v --with-coverage --cover-erase --cover-package=api
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
# command for coverage reporting
after_success:
- coveralls