Skip to content

Commit e61514d

Browse files
committed
Add .codeclimate.yml
1 parent bd933bb commit e61514d

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

.codeclimate.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This is a sample .codeclimate.yml configured for Engine analysis on Code
2+
# Climate Platform. For an overview of the Code Climate Platform, see here:
3+
# http://docs.codeclimate.com/article/300-the-codeclimate-platform
4+
# Under the engines key, you can configure which engines will analyze your repo.
5+
version: "2"
6+
exclude_patterns:
7+
- build/*
8+
- dist/*
9+
- shallow_backup.egg-info/*
10+
11+
plugins:
12+
radon:
13+
enabled: true
14+
config:
15+
threshold: "C"
16+
sonar-python:
17+
enabled: true
18+
config:
19+
tests_patterns:
20+
- tests/*

.travis.yml

+1-11
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,10 @@ install:
77
- pip install pipenv
88
- pipenv install --dev
99

10-
before_script:
11-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
12-
- chmod +x ./cc-test-reporter
13-
- export CC_TEST_REPORTER_ID=ba897ecaeb793815f8118d14044a97caa9c25ef4188267313d15eba84e8c987a
14-
- ./cc-test-reporter before-build
15-
1610
# command to run tests
1711
script:
1812
- cd tests
1913
- pipenv run python3 -m pytest
2014

2115
git:
22-
depth: false
23-
24-
# Pipe the coverage data to Code Climate
25-
after_script:
26-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
16+
depth: false

0 commit comments

Comments
 (0)