-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (32 loc) · 889 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
32
dist: xenial
sudo: required
language: python
python:
- "3.7"
env:
global:
- CC_TEST_REPORTER_ID=bd2dea73516494744cc6de5a2cf41d6734e03f7c2db2d292e944a347bb219281
services:
- docker
before_install:
- pip install -U pip
- 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
script:
- flake8 src/
- pytest
- coverage run -m pytest
- echo $DOCKERHUB_PASS | docker login --username $DOCKERHUB_USER --password-stdin
after_script:
- pytest --cov=src src/tests/ --cov-report xml
- cp docs/coverage.xml .
- ./cc-test-reporter after-build -p $(pwd) --exit-code $TRAVIS_TEST_RESULT -t coverage.py
deploy:
provider: script
script: bash deploy.sh
skip_cleanup: true
on:
branch: develop