Skip to content

Commit

Permalink
Run the coverage in all the operating systems (#26)
Browse files Browse the repository at this point in the history
* Run the coverage in all the operating systems

* Fix codecov parameter

* Remove gcov execution in codecov
  • Loading branch information
Oscar Torreno committed Jun 25, 2018
1 parent 1f752cf commit 4e591d1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .CI/travis/build_and_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@

if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
sudo python${PYTHON_VERSION} setup.py install
python${PYTHON_VERSION} -m unittest discover tests/unit_tests *_tests.py -f -v
else
python setup.py install
coverage run -m unittest discover tests/unit_tests *_tests.py -f -v
fi

coverage run -m unittest discover tests/unit_tests *_tests.py -f -v

1 change: 1 addition & 0 deletions .CI/travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then

sudo pip${PYTHON_VERSION} install -r requirements.txt
sudo pip${PYTHON_VERSION} install -r test-requirements.txt
sudo pip${PYTHON_VERSION} install codecov
else
pip install -r requirements.txt
pip install -r test-requirements.txt
Expand Down
3 changes: 3 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ before_build:
- ps: if(!(Test-Path -Path "C:\Program Files\Khiva" )){ .\khiva-v0.1.0-unattended.exe /S }
- pip install -r requirements.txt
- pip install -r test-requirements.txt
- pip install codecov
build_script:
- python setup.py install
test_script:
- coverage run -m unittest discover tests/unit_tests *_tests.py -f -v
- python -m xmlrunner discover tests/unit_tests *_tests.py
on_finish:
- codecov -F Windows -X gcov
- ps: |
$files = Get-ChildItem -Path . -File -Filter *.xml
foreach ($file in $files) {
Expand Down
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ matrix:
sudo: required
python: "3.6"
after_success:
- codecov
- codecov -F Linux -X gcov
- os: linux
dist: trusty
sudo: required
Expand All @@ -33,6 +33,8 @@ matrix:
- ${TRAVIS_BUILD_DIR}/installers
- $HOME/.pyenv
- $HOME/Library/Caches/Homebrew
after_success:
- codecov -F MacOS -X gcov
- os: osx
osx_image: xcode9.3
language: generic
Expand Down

0 comments on commit 4e591d1

Please sign in to comment.