From 2ce53e99571e25950d3a1f1caef006b7a65ce2e1 Mon Sep 17 00:00:00 2001 From: niphlod Date: Sun, 14 Jun 2015 20:44:08 +0200 Subject: [PATCH] move to codecov and enable appveyor too --- .travis.yml | 4 ++-- appveyor.yml | 25 +++++++++++++++++++++++++ gluon/tests/coverage.ini | 1 + 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 appveyor.yml diff --git a/.travis.yml b/.travis.yml index 77028bbd..99bed1e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..49fe13c3 --- /dev/null +++ b/appveyor.yml @@ -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 \ No newline at end of file diff --git a/gluon/tests/coverage.ini b/gluon/tests/coverage.ini index 69f39f94..3c314b75 100644 --- a/gluon/tests/coverage.ini +++ b/gluon/tests/coverage.ini @@ -26,6 +26,7 @@ exclude_lines = ignore_errors = True omit = gluon/contrib/* gluon/tests/* + gluon/packages/* [html] directory = coverage_html_report