PyCIRCLean/.travis.yml

83 lines
2.4 KiB
YAML
Raw Normal View History

language: python
python:
- 3.3
- 3.4
- 3.5
2017-04-13 23:03:50 +02:00
- 3.6
- "3.6-dev"
- nightly
2015-10-27 10:59:35 +01:00
sudo: required
# do we need sudo? should double check
2015-10-27 10:59:35 +01:00
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
# 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 python-pip
2015-11-24 15:03:57 +01:00
# filecheck.py dependencies
2016-05-09 17:38:32 +02:00
- sudo apt-get install libxml2-dev libxslt1-dev
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
- pip install -U pip
- pip install lxml exifread pillow olefile
- pip install git+https://github.com/decalage2/oletools.git
- pip install git+https://github.com/grierforensics/officedissector.git
# PyCIRCLean dependencies
- pip install -r dev-requirements.txt
- pip install coveralls codecov
2015-11-24 15:03:57 +01:00
# Testing dependencies
- sudo apt-get install rar
# Prepare tests
# Malware from theZoo
- 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/dangerous/
# Path traversal attacks
- git clone https://github.com/jwilk/path-traversal-samples
- pushd path-traversal-samples
- pushd zip
- make
- popd
- pushd rar
- make
- popd
- popd
- mv path-traversal-samples/zip/*.zip tests/dangerous/
- mv path-traversal-samples/rar/*.rar tests/dangerous/
2016-02-01 11:45:50 +01:00
# Office docs
2016-05-16 20:15:38 +02:00
- git clone https://github.com/eea/odfpy.git
- mv odfpy/tests/examples/* tests/dangerous/
- pushd tests/dangerous/
2016-05-14 20:03:40 +02:00
- 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
- unzip -o fraunhoferlibrary.zip
2016-05-11 10:57:18 +02:00
- rm fraunhoferlibrary.zip
- 7z x -p42 42.zip
- popd
script:
2017-01-19 23:06:34 +01:00
- travis_wait 30 py.test --cov=kittengroomer --cov=bin tests/
2015-11-24 11:32:44 +01:00
notifications:
email:
on_success: change
on_failure: change
after_success:
- coveralls
- codecov