2015-10-26 17:11:36 +01:00
|
|
|
language: python
|
|
|
|
|
|
|
|
python:
|
2017-04-13 23:03:50 +02:00
|
|
|
- 3.6
|
2017-12-20 16:15:30 +01:00
|
|
|
- "3.6-dev"
|
2019-02-10 18:19:50 +01:00
|
|
|
- "3.7-dev"
|
2020-01-13 16:04:51 +01:00
|
|
|
- "3.8-dev"
|
2017-08-22 23:49:48 +02:00
|
|
|
# - nightly
|
2015-10-26 17:11:36 +01:00
|
|
|
|
2015-10-27 10:59:35 +01:00
|
|
|
sudo: required
|
2017-07-07 22:34:10 +02:00
|
|
|
# https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments
|
2015-10-27 10:59:35 +01:00
|
|
|
|
2019-08-29 10:53:11 +02:00
|
|
|
dist: bionic
|
2015-11-24 15:03:57 +01:00
|
|
|
|
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
|
|
|
|
2015-10-26 17:11:36 +01:00
|
|
|
install:
|
2015-11-24 15:03:57 +01:00
|
|
|
# General dependencies
|
2015-11-24 15:09:27 +01:00
|
|
|
- sudo apt-get update -qq
|
2019-03-18 14:55:45 +01:00
|
|
|
- sudo apt-get install -y p7zip-rar
|
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
|
2020-01-13 16:04:51 +01:00
|
|
|
- wget https://didierstevens.com/files/software/pdfid_v0_2_7.zip
|
|
|
|
- unzip pdfid_v0_2_7.zip
|
2019-02-10 18:19:50 +01:00
|
|
|
- pip install -U pip pipenv
|
2017-01-19 22:28:22 +01:00
|
|
|
# PyCIRCLean dependencies
|
2019-02-10 18:19:50 +01:00
|
|
|
- pipenv install -d
|
2015-11-24 15:03:57 +01:00
|
|
|
# Testing dependencies
|
|
|
|
- sudo apt-get install rar
|
2016-12-07 17:29:18 +01:00
|
|
|
# Prepare tests
|
2017-01-19 22:28:22 +01:00
|
|
|
# Malware from theZoo
|
2017-07-21 00:39:41 +02:00
|
|
|
- git clone https://github.com/Rafiot/theZoo.git
|
|
|
|
- pushd theZoo/malwares/Binaries
|
|
|
|
- python unpackall.py
|
|
|
|
- popd
|
|
|
|
- mkdir tests/uncategorized/the_zoo/
|
|
|
|
- mv theZoo/malwares/Binaries/out tests/uncategorized/the_zoo/
|
2017-01-19 22:28:22 +01:00
|
|
|
# Path traversal attacks
|
2016-12-09 17:41:19 +01:00
|
|
|
- git clone https://github.com/jwilk/path-traversal-samples
|
|
|
|
- pushd path-traversal-samples
|
|
|
|
- pushd zip
|
|
|
|
- make
|
|
|
|
- popd
|
|
|
|
- pushd rar
|
|
|
|
- make
|
|
|
|
- popd
|
|
|
|
- popd
|
2017-07-20 21:26:10 +02:00
|
|
|
- mkdir tests/uncategorized/path_traversal_zip/
|
|
|
|
- mkdir tests/uncategorized/path_traversal_rar/
|
2017-07-20 21:16:42 +02:00
|
|
|
- mv path-traversal-samples/zip/*.zip tests/uncategorized/path_traversal_zip
|
|
|
|
- mv path-traversal-samples/rar/*.rar tests/uncategorized/path_traversal_rar
|
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
|
2017-07-20 21:26:10 +02:00
|
|
|
- mkdir tests/uncategorized/odfpy/
|
|
|
|
- mv odfpy/tests/examples/* tests/uncategorized/odfpy/
|
|
|
|
- mkdir tests/uncategorized/olefile
|
|
|
|
- pushd tests/uncategorized/olefile
|
2016-05-14 20:03:40 +02:00
|
|
|
- wget https://bitbucket.org/decalage/olefileio_pl/raw/3073963b640935134ed0da34906fea8e506460be/Tests/images/test-ole-file.doc
|
2017-07-20 21:16:42 +02:00
|
|
|
- popd
|
2017-07-20 21:26:10 +02:00
|
|
|
- mkdir tests/uncategorized/fraunhofer && pushd tests/uncategorized/fraunhofer
|
2016-12-07 17:09:11 +01:00
|
|
|
- wget --no-check-certificate https://www.officedissector.com/corpus/fraunhoferlibrary.zip
|
2016-05-09 17:45:21 +02:00
|
|
|
- unzip -o fraunhoferlibrary.zip
|
2016-05-11 10:57:18 +02:00
|
|
|
- rm fraunhoferlibrary.zip
|
2017-07-07 22:34:10 +02:00
|
|
|
- popd
|
2017-08-07 23:17:10 +02:00
|
|
|
# Turned off unzipping 42.zip because it isn't included in the file catalog and archivebomb.zip ends up testing the same thing
|
2017-07-17 02:18:05 +02:00
|
|
|
# - pushd tests/dangerous/
|
|
|
|
# - 7z x -p42 42.zip
|
|
|
|
# - popd
|
2015-10-26 17:11:36 +01:00
|
|
|
|
|
|
|
script:
|
2020-01-13 16:04:51 +01:00
|
|
|
- pipenv run mypy kittengroomer/ filecheck/ tests/ scripts/ --ignore-missing-imports
|
2019-02-10 18:19:50 +01:00
|
|
|
- travis_wait 60 pipenv run py.test --cov=kittengroomer --cov=filecheck tests/
|
2015-10-26 17:11:36 +01:00
|
|
|
|
2015-11-24 11:32:44 +01:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: change
|
|
|
|
|
2015-10-26 17:11:36 +01:00
|
|
|
after_success:
|
|
|
|
- codecov
|