Browse Source

Switch to code-cov

Alexandre Flament 7 years ago
parent
commit
fb587f11fe
4 changed files with 7 additions and 6 deletions
  1. 2
    2
      .travis.yml
  2. 3
    3
      manage.sh
  3. 1
    0
      requirements-dev.txt
  4. 1
    1
      requirements.txt

+ 2
- 2
.travis.yml View File

20
 install:
20
 install:
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
24
 script:
24
 script:
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
28
 after_success:
28
 after_success:
29
   - ./manage.sh py_test_coverage
29
   - ./manage.sh py_test_coverage
30
-  - coveralls
30
+  - codecov
31
 notifications:
31
 notifications:
32
   irc:
32
   irc:
33
     channels:
33
     channels:

+ 3
- 3
manage.sh View File

73
 
73
 
74
 py_test_coverage() {
74
 py_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"
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
79
 }
79
 }
80
 
80
 
81
 robot_tests() {
81
 robot_tests() {

+ 1
- 0
requirements-dev.txt View File

1
 babel==2.3.4
1
 babel==2.3.4
2
 mock==2.0.0
2
 mock==2.0.0
3
 nose2[coverage-plugin]
3
 nose2[coverage-plugin]
4
+cov-core==1.15.0
4
 pep8==1.7.0
5
 pep8==1.7.0
5
 plone.testing==5.0.0
6
 plone.testing==5.0.0
6
 splinter==0.7.5
7
 splinter==0.7.5

+ 1
- 1
requirements.txt View File

7
 pyopenssl==17.2.0
7
 pyopenssl==17.2.0
8
 python-dateutil==2.6.1
8
 python-dateutil==2.6.1
9
 pyyaml==3.12
9
 pyyaml==3.12
10
-requests[socks]==2.14.2
10
+requests[socks]==2.18.4