mirror of https://github.com/CIRCL/PyCIRCLean
Updated .travis.yml to make build pass + added pytest-cov
parent
d0414cfbdc
commit
91e6b85319
23
.travis.yml
23
.travis.yml
|
@ -48,23 +48,24 @@ install:
|
||||||
if [[ "$TRAVIS_PYTHON_VERSION" == "2.7_with_system_site_packages" ]]; then
|
if [[ "$TRAVIS_PYTHON_VERSION" == "2.7_with_system_site_packages" ]]; then
|
||||||
sudo pip install -U pip lxml exifread pillow
|
sudo pip install -U pip lxml exifread pillow
|
||||||
sudo pip install -U git+https://github.com/Rafiot/officedissector.git
|
sudo pip install -U git+https://github.com/Rafiot/officedissector.git
|
||||||
sudo pip install -U oletools olefile coveralls codecov
|
sudo pip install -U oletools olefile coveralls codecov pytest-cov
|
||||||
else
|
else
|
||||||
pip install -U pip lxml exifread pillow
|
pip install -U pip lxml exifread pillow
|
||||||
pip install -U git+https://github.com/Rafiot/officedissector.git
|
pip install -U git+https://github.com/Rafiot/officedissector.git
|
||||||
pip install -U coveralls codecov
|
pip install -U coveralls codecov pytest-cov
|
||||||
fi
|
fi
|
||||||
- python setup.py -q install
|
# Module dependencies
|
||||||
|
- pip install -r dev-requirements.txt
|
||||||
# Testing dependencies
|
# Testing dependencies
|
||||||
- sudo apt-get install rar
|
- sudo apt-get install rar
|
||||||
# Prepare testings
|
# Prepare tests
|
||||||
# Zoo
|
# Zoo
|
||||||
- git clone https://github.com/Rafiot/theZoo.git
|
- git clone https://github.com/Rafiot/theZoo.git
|
||||||
- pushd theZoo/malwares/Binaries
|
- pushd theZoo/malwares/Binaries
|
||||||
- python unpackall.py
|
- python unpackall.py
|
||||||
- popd
|
- popd
|
||||||
- mv theZoo/malwares/Binaries/out tests/src/
|
- mv theZoo/malwares/Binaries/out tests/src_complex/
|
||||||
# path transversal
|
# path traversal
|
||||||
# - hg clone https://bitbucket.org/jwilk/path-traversal-samples
|
# - hg clone https://bitbucket.org/jwilk/path-traversal-samples
|
||||||
# - pushd path-traversal-samples
|
# - pushd path-traversal-samples
|
||||||
# - pushd zip
|
# - pushd zip
|
||||||
|
@ -74,12 +75,12 @@ install:
|
||||||
# - make
|
# - make
|
||||||
# - popd
|
# - popd
|
||||||
# - popd
|
# - popd
|
||||||
# - mv path-traversal-samples/zip/*.zip tests/src/
|
# - mv path-traversal-samples/zip/*.zip tests/src_complex/
|
||||||
# - mv path-traversal-samples/rar/*.rar tests/src/
|
# - mv path-traversal-samples/rar/*.rar tests/src_complex/
|
||||||
# Office docs
|
# Office docs
|
||||||
- git clone https://github.com/eea/odfpy.git
|
- git clone https://github.com/eea/odfpy.git
|
||||||
- mv odfpy/tests/examples/* tests/src/
|
- mv odfpy/tests/examples/* tests/src_complex/
|
||||||
- pushd tests/src/
|
- pushd tests/src_complex/
|
||||||
- wget https://bitbucket.org/decalage/olefileio_pl/raw/3073963b640935134ed0da34906fea8e506460be/Tests/images/test-ole-file.doc
|
- wget https://bitbucket.org/decalage/olefileio_pl/raw/3073963b640935134ed0da34906fea8e506460be/Tests/images/test-ole-file.doc
|
||||||
- wget --no-check-certificate https://www.officedissector.com/corpus/fraunhoferlibrary.zip
|
- wget --no-check-certificate https://www.officedissector.com/corpus/fraunhoferlibrary.zip
|
||||||
- unzip -o fraunhoferlibrary.zip
|
- unzip -o fraunhoferlibrary.zip
|
||||||
|
@ -92,7 +93,7 @@ install:
|
||||||
- popd
|
- popd
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- travis_wait 60 coverage run --source=bin,kittengroomer setup.py test
|
- travis_wait 60 py.test --cov=kittengroomer --cov=bin tests/
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
twiggy
|
twiggy
|
||||||
python-magic
|
python-magic
|
||||||
pytest
|
pytest
|
||||||
|
pytest-cov
|
||||||
|
|
Loading…
Reference in New Issue