PyCIRCLean/.travis.yml

85 lines
2.5 KiB
YAML
Raw Normal View History

language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "nightly"
2015-10-27 10:59:35 +01:00
sudo: required
2015-11-24 15:03:57 +01:00
dist: trusty
2015-10-27 10:59:35 +01:00
addons:
apt:
packages:
2015-11-24 15:03:57 +01:00
# General dependencies
2015-10-27 10:59:35 +01:00
- p7zip-full
2015-11-24 15:03:57 +01:00
# generic.py dependencies
- ghostscript
# Testing dependencies
2015-11-20 11:47:47 +01:00
- mercurial
2015-10-27 10:59:35 +01:00
install:
2015-11-24 15:03:57 +01:00
# General dependencies
2015-11-24 15:09:27 +01:00
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty multiverse" && sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty-updates multiverse"
- sudo apt-get update -qq
- sudo apt-get install -y p7zip-rar
2015-11-24 15:03:57 +01:00
- pip install git+https://github.com/ahupp/python-magic.git
# generic.py: pdf2htmlEX + dependencies
2015-10-27 10:59:35 +01:00
- sudo add-apt-repository ppa:fontforge/fontforge --yes
2015-11-24 15:09:27 +01:00
# to get a working 0.26 poppler
- sudo add-apt-repository ppa:delayargentina/delayx --yes
2015-10-27 10:59:35 +01:00
- sudo apt-get update -qq
2015-11-24 15:09:27 +01:00
- sudo apt-get install -y libpoppler-dev libpoppler-private-dev libspiro-dev libcairo-dev libpango1.0-dev libfreetype6-dev libltdl-dev libfontforge-dev python-imaging python-pip firefox xvfb
2015-10-27 10:59:35 +01:00
- git clone https://github.com/coolwanglu/pdf2htmlEX.git
- pushd pdf2htmlEX
- cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DENABLE_SVG=ON .
- make
- sudo make install
- popd
2015-11-24 15:03:57 +01:00
# generic.py: Other dependencies
2015-11-24 15:09:27 +01:00
- sudo apt-get install -y libreoffice
- sudo apt-get install -y unoconv
2015-11-24 15:03:57 +01:00
# filecheck.py dependencies
2015-11-03 11:54:38 +01:00
- pip install lxml
2015-11-03 11:12:29 +01:00
- pip install officedissector
- if [ $(python -c 'import sys; print(sys.version_info.major)') == '2' ]; then pip install oletools olefile ; fi
2015-11-03 11:54:38 +01:00
- wget https://didierstevens.com/files/software/pdfid_v0_2_1.zip
- unzip pdfid_v0_2_1.zip
- python setup.py -q install
2015-11-24 15:03:57 +01:00
# Testing dependencies
- sudo apt-get install rar
- pip install coveralls
- pip install codecov
# Prepare testings
- git clone https://github.com/Rafiot/theZoo.git
- pushd theZoo/malwares/Binaries
- python unpackall.py
2015-11-03 16:26:02 +01:00
- popd
- mv theZoo/malwares/Binaries/out tests/src/
2015-11-20 11:47:47 +01:00
- hg clone https://bitbucket.org/jwilk/path-traversal-samples
2015-11-24 15:03:57 +01:00
- pushd path-traversal-samples
- pushd zip
2015-11-20 11:47:47 +01:00
- make
- popd
2015-11-24 15:03:57 +01:00
- pushd rar
- make
- popd
- popd
2015-11-20 11:47:47 +01:00
- mv path-traversal-samples/zip/*.zip tests/src/
2015-11-24 15:03:57 +01:00
- mv path-traversal-samples/rar/*.rar tests/src/
script:
- coverage run setup.py test
2015-11-24 11:32:44 +01:00
notifications:
email:
on_success: change
on_failure: change
after_success:
- coveralls
- codecov