on master help sign in
Merge pull request #1037 from dalf/codecov

Switch to code-cov

commit1dffbd33907103434bdc13ff035b8993559b5158 authorAdam Tauber <asciimoo@gmail.com> dateThu 28 Sep 2017, 19:57 (9 years ago) parenteddc162c12e0c3
5 files changed+38−6
.codecov.yml+31 .travis.yml+2−2 manage.sh+3−3 requirements-dev.txt+1 requirements.txt+1−1
.codecov.ymlnew file+31
@@ -0,0 +1,31 @@
1+comment: false
2+coverage:
3+ status:
4+ project:
5+ default:
6+ # basic
7+ target: auto
8+ threshold: null
9+ base: auto
10+ # advanced
11+ branches: null
12+ if_no_uploads: error
13+ if_not_found: success
14+ if_ci_failed: error
15+ only_pulls: false
16+ flags: null
17+ paths: null
18+ patch:
19+ default:
20+ # basic
21+ target: auto
22+ threshold: null
23+ base: auto
24+ # advanced
25+ branches: null
26+ if_no_uploads: error
27+ if_not_found: success
28+ if_ci_failed: error
29+ only_pulls: false
30+ flags: null
31+ paths: null
.travis.yml+2−2
@@ -20,14 +20,14 @@ before_install:
2020install:
2121 - ./manage.sh npm_packages
2222 - ./manage.sh update_dev_packages
23− - pip install coveralls
23+ - pip install codecov
2424script:
2525 - ./manage.sh styles
2626 - ./manage.sh grunt_build
2727 - ./manage.sh tests
2828after_success:
2929 - ./manage.sh py_test_coverage
30− - coveralls
30+ - codecov
3131notifications:
3232 irc:
3333 channels:
manage.sh+3−3
@@ -73,9 +73,9 @@ unit_tests() {
7373
7474py_test_coverage() {
7575 echo '[!] Running python test coverage'
76− PYTHONPATH=`pwd` python -m nose2 -C --coverage "$SEARX_DIR" -s "$BASE_DIR/tests/unit"
77− coverage report
78− coverage html
76+ PYTHONPATH=`pwd` python -m nose2 -C --log-capture --with-coverage --coverage "$SEARX_DIR" -s "$BASE_DIR/tests/unit" \
77+ && coverage report \
78+ && coverage html
7979}
8080
8181robot_tests() {
requirements-dev.txt+1
@@ -1,6 +1,7 @@
11babel==2.3.4
22mock==2.0.0
33nose2[coverage-plugin]
4+cov-core==1.15.0
45pep8==1.7.0
56plone.testing==5.0.0
67splinter==0.7.5
requirements.txt+1−1
@@ -7,4 +7,4 @@ pygments==2.1.3
77pyopenssl==17.2.0
88python-dateutil==2.6.1
99pyyaml==3.12
10−requests[socks]==2.14.2
10+requests[socks]==2.18.4