Skip to content

Commit

Permalink
Migrated code coverage checking to codecov.io (#9)
Browse files Browse the repository at this point in the history
* Migrated code coverage checking to codecov.io
  • Loading branch information
joachimmetz authored and Onager committed Jul 19, 2018
1 parent c8e7d81 commit 5ffd39b
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
.build/
dist
/MANIFEST.test_data
/plasoscaffolder.egg-info
/src/plasoscaffolder.egg-info

# Auto-generated Sphinx documentation files
Expand Down
33 changes: 20 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
language: python
matrix:
include:
- os: linux
- env: TARGET="linux-python27"
os: linux
dist: trusty
sudo: required
python: 3.6
exclude:
- os: osx
language: generic
env: PYTHONPATH=/Library/Python/3.6/site-packages/
group: edge
python: 2.7
- env: TARGET="linux-python36"
os: linux
dist: trusty
sudo: required
group: edge
python: 3.6
- env: [TARGET="macos-python27", PYTHONPATH="/Library/Python/2.7/site-packages/"]
os: osx
osx_image: xcode9.2
language: generic
allow_failures:
- env: TARGET="linux-python27"
- env: [TARGET="macos-python27", PYTHONPATH="/Library/Python/2.7/site-packages/"]
cache: pip
install:
- pip install -r src/requirements.txt
- pip install coveralls
script:
- python src/run_tests.py
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then coverage run --source=src/plasoscaffolder src/run_tests_for_coverage.py test ; fi
install:
- pip install -r requirements.txt
- pip install coverage
script:
- if test ${TARGET} = "linux-python36"; then coverage run --source=plasoscaffolder ./src/run_tests_for_coverage.py test; else ./src/run_tests.py; fi
after_success:
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then coveralls ; fi
- if test ${TARGET} = "linux-python36"; then curl -o codecov.sh -s https://codecov.io/bash && /bin/bash ./codecov.sh; fi
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
PlasoScaffolder is a SQLite Plugin Scaffolder for Plaso.

### Project status
[Travis-CI](https://travis-ci.org/) | [AppVeyor](https://ci.appveyor.com) | [Coveralls](https://coveralls.io/)
[Travis-CI](https://travis-ci.org/) | [AppVeyor](https://ci.appveyor.com) | [Codecov](https://codecov.io/)
--- | --- | ---
[![Build Status](https://travis-ci.org/log2timeline/PlasoScaffolder.svg?branch=master)](https://travis-ci.org/log2timeline/PlasoScaffolder) | [![Build status](https://ci.appveyor.com/api/projects/status/bdd2caw07twol353?svg=true)](https://ci.appveyor.com/project/joachimmetz/plasoscaffolder) | [![Coverage Status](https://coveralls.io/repos/github/log2timeline/PlasoScaffolder/badge.svg?branch=master)](https://coveralls.io/github/log2timeline/PlasoScaffolder?branch=master)
[![Build Status](https://travis-ci.org/log2timeline/PlasoScaffolder.svg?branch=master)](https://travis-ci.org/log2timeline/PlasoScaffolder) | [![Build status](https://ci.appveyor.com/api/projects/status/bdd2caw07twol353?svg=true)](https://ci.appveyor.com/project/joachimmetz/plasoscaffolder) | [![codecov](https://codecov.io/gh/log2timeline/PlasoScaffolder/branch/master/graph/badge.svg)](https://codecov.io/gh/log2timeline/PlasoScaffolder)

### Documentation
https://claudiasaxer.github.io/PlasoScaffolder <br>
Expand Down
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ environment:


install:
- "%PYTHON%\\python.exe -m pip install -r src/requirements.txt"
- "%PYTHON%\\python.exe -m pip install -r requirements.txt"

build: off

Expand All @@ -17,7 +17,7 @@ test_script:
# Note that you must use the environment variable %PYTHON% to refer to
# the interpreter you're using - Appveyor does not do anything special
# to put the Python evrsion you want to use on PATH.
- "%PYTHON%\\python.exe src/run_tests.py test"
- "%PYTHON%\\python.exe src\\run_tests.py test"

after_test:
# This step builds your wheels.
Expand Down
File renamed without changes.

0 comments on commit 5ffd39b

Please sign in to comment.