move to codecov and enable appveyor too
This commit is contained in:
@@ -17,14 +17,14 @@ install:
|
||||
before_script:
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install --download-cache $HOME/.pip-cache unittest2; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install --download-cache $HOME/.pip-cache coverage; fi;
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install --download-cache $HOME/.pip-cache python-coveralls; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install --download-cache $HOME/.pip-cache codecov; fi
|
||||
|
||||
|
||||
script: export COVERAGE_PROCESS_START=gluon/tests/coverage.ini; ./web2py.py --run_system_tests --with_coverage
|
||||
|
||||
after_success:
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then coverage combine; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then coveralls --config_file=gluon/tests/coverage.ini; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then codecov; fi
|
||||
|
||||
notifications:
|
||||
email: true
|
||||
|
||||
25
appveyor.yml
Normal file
25
appveyor.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
build: false
|
||||
|
||||
environment:
|
||||
matrix:
|
||||
- PYTHON: "C:/Python27"
|
||||
COVERAGE_PROCESS_START: gluon/tests/coverage.ini
|
||||
|
||||
clone_depth: 50
|
||||
|
||||
init:
|
||||
- "ECHO %PYTHON%"
|
||||
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
|
||||
|
||||
install:
|
||||
- ps: Start-FileDownload https://bootstrap.pypa.io/get-pip.py
|
||||
- python get-pip.py
|
||||
- pip install codecov
|
||||
- git submodule update --init --recursive
|
||||
|
||||
test_script:
|
||||
- python web2py.py --run_system_tests --with_coverage
|
||||
|
||||
after_test:
|
||||
- coverage combine
|
||||
- codecov
|
||||
@@ -26,6 +26,7 @@ exclude_lines =
|
||||
ignore_errors = True
|
||||
omit = gluon/contrib/*
|
||||
gluon/tests/*
|
||||
gluon/packages/*
|
||||
|
||||
[html]
|
||||
directory = coverage_html_report
|
||||
|
||||
Reference in New Issue
Block a user