-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy path.travis.yml
More file actions
29 lines (22 loc) · 786 Bytes
/
Copy path.travis.yml
File metadata and controls
29 lines (22 loc) · 786 Bytes
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
# Config file for automatic testing at travis-ci.org
env:
global:
- CC_TEST_REPORTER_ID=a1045acd9a066edb2fbc710e8618d74f4865f838ddf6b0d469b4f91774ba6958
language: python
sudo: required
dist: xenial
python:
- "3.6"
- "3.7"
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 install dependencies, e.g. pip install -r requirements.txt --use-mirrors
# command to run tests, e.g. python setup.py test
script:
- PYTHONPATH=. py.test --doctest-modules --cov=. tests/ myanmar/
after_script:
- coverage xml
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT