mirror of https://github.com/CIRCL/PyCIRCLean
52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
language: python
|
|
|
|
python:
|
|
- "2.7"
|
|
- "3.3"
|
|
- "3.4"
|
|
- "3.5"
|
|
- "nightly"
|
|
|
|
sudo: required
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- ghostscript
|
|
- p7zip-full
|
|
|
|
install:
|
|
- pip install git+https://github.com/Rafiot/python-magic.git@travis
|
|
- sudo add-apt-repository ppa:fontforge/fontforge --yes
|
|
- sudo add-apt-repository ppa:coolwanglu/pdf2htmlex --yes
|
|
- sudo apt-get update -qq
|
|
- sudo apt-get install -qq libpoppler-dev libpoppler-private-dev libspiro-dev libcairo-dev libpango1.0-dev libfreetype6-dev libltdl-dev libfontforge-dev python-imaging python-pip firefox xvfb
|
|
- sudo apt-get install libreoffice
|
|
- sudo apt-get install unoconv
|
|
- git clone https://github.com/coolwanglu/pdf2htmlEX.git
|
|
- pushd pdf2htmlEX
|
|
- cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DENABLE_SVG=ON .
|
|
- make
|
|
- sudo make install
|
|
- popd
|
|
- pip install lxml
|
|
- pip install officedissector
|
|
- if [ $(python -c 'import sys; print(sys.version_info.major)') == '2' ]; then pip install oletools olefile ; fi
|
|
- pip install coveralls
|
|
- pip install codecov
|
|
- wget https://didierstevens.com/files/software/pdfid_v0_2_1.zip
|
|
- unzip pdfid_v0_2_1.zip
|
|
- python setup.py -q install
|
|
- git clone https://github.com/Rafiot/theZoo.git
|
|
- pushd theZoo/malwares/Binaries
|
|
- python unpackall.py
|
|
- popd
|
|
- mv theZoo/malwares/Binaries/out tests/src/
|
|
|
|
script:
|
|
- coverage run setup.py test
|
|
|
|
after_success:
|
|
- coveralls
|
|
- codecov
|