-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
33 lines (29 loc) · 771 Bytes
/
.travis.yml
File metadata and controls
33 lines (29 loc) · 771 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
30
31
32
33
sudo: required
services:
- docker
language: python
stages:
- test
jobs:
include:
- stage: test
python: 2.7
env: TOXENV=py27-codeclimate
install:
- pip install tox
script:
- tox
- stage: test
python: 3.6
env: TOXENV=py36-codeclimate
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
install:
- pip install tox
script:
- tox
after_script:
- mv tests/coverage.xml .
- ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT tests/coverage.xml