on master help sign in
Merge pull request #1037 from dalf/codecov
1dffbd3Adam Tauber
.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:
20install:
20install:
21 - ./manage.sh npm_packages
21 - ./manage.sh npm_packages
22 - ./manage.sh update_dev_packages
22 - ./manage.sh update_dev_packages
23− - pip install coveralls
23+ - pip install codecov
24script:
24script:
25 - ./manage.sh styles
25 - ./manage.sh styles
26 - ./manage.sh grunt_build
26 - ./manage.sh grunt_build
27 - ./manage.sh tests
27 - ./manage.sh tests
28after_success:
28after_success:
29 - ./manage.sh py_test_coverage
29 - ./manage.sh py_test_coverage
30− - coveralls
30+ - codecov
31notifications:
31notifications:
32 irc:
32 irc:
33 channels:
33 channels:
manage.sh+3−3
@@ -73,9 +73,9 @@ unit_tests() {
73
73
74py_test_coverage() {
74py_test_coverage() {
75 echo '[!] Running python test coverage'
75 echo '[!] Running python test coverage'
76− PYTHONPATH=`pwd` python -m nose2 -C --coverage "$SEARX_DIR" -s "$BASE_DIR/tests/unit"
76+ PYTHONPATH=`pwd` python -m nose2 -C --log-capture --with-coverage --coverage "$SEARX_DIR" -s "$BASE_DIR/tests/unit" \
77− coverage report
77+ && coverage report \
78− coverage html
78+ && coverage html
79}
79}
80
80
81robot_tests() {
81robot_tests() {
requirements-dev.txt+1
@@ -1,6 +1,7 @@
1babel==2.3.4
1babel==2.3.4
2mock==2.0.0
2mock==2.0.0
3nose2[coverage-plugin]
3nose2[coverage-plugin]
4+cov-core==1.15.0
4pep8==1.7.0
5pep8==1.7.0
5plone.testing==5.0.0
6plone.testing==5.0.0
6splinter==0.7.5
7splinter==0.7.5
requirements.txt+1−1
@@ -7,4 +7,4 @@ pygments==2.1.3
7pyopenssl==17.2.0
7pyopenssl==17.2.0
8python-dateutil==2.6.1
8python-dateutil==2.6.1
9pyyaml==3.12
9pyyaml==3.12
10−requests[socks]==2.14.2
10+requests[socks]==2.18.4