Browse Source

(build) Run tests in Circle CI

main
Michal Charemza 5 years ago
parent
commit
71cb04b337
No known key found for this signature in database GPG Key ID: 4BBAF0F6B73C4363
1 changed files with 26 additions and 0 deletions
  1. +26
    -0
      .circleci/config.yml

+ 26
- 0
.circleci/config.yml View File

@@ -0,0 +1,26 @@
version: 2
workflows:
version: 2
test:
jobs:
- test-3.7.5
jobs:
test-3.7.5:
docker:
- image: python:3.7.5
steps:
- checkout
- run:
name: Install coverage and reporter
command: |
pip install coverage==5.0.3
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run:
name: Run tests
command: |
set -x
./cc-test-reporter before-build
coverage run -m setup test -v
coverage xml -i
./cc-test-reporter after-build

Loading…
Cancel
Save