-
Notifications
You must be signed in to change notification settings - Fork 55
/
.travis.yml
49 lines (49 loc) · 1.6 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
sudo: false
language: python
python:
- "2.7"
addons:
apt:
packages:
- make
- gcc
- python-virtualenv
- unzip
- gcc-multilib
before_script:
- "cd .."
# make virtual env
- "python /usr/lib/python2.7/dist-packages/virtualenv.py virtualenv;"
- "cd virtualenv;"
- "source bin/activate;"
# install elfesteem
- "git clone https://github.com/serpilliere/elfesteem elfesteem && cd elfesteem && python setup.py install && cd ..;"
# install pyparsing
- "pip install pyparsing"
# install miasm
- "cd ..;git clone -b 'v0.1.1' https://github.com/cea-sec/miasm miasm && cd miasm;"
- "python setup.py build build_ext -I$(pwd)/../virtualenv/include -L$(pwd)/../virtualenv/tinycc"
- "python setup.py install"
- "cd ..;"
# install unicorn
- "git clone https://github.com/unicorn-engine/unicorn && cd unicorn && make && make -C bindings/python && export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd) && cd ..;"
- "cd unicorn/bindings/python && python setup.py install && cd ../../../;"
- "python -c 'import unicorn'"
# install pycparser
- "pip install pycparser"
# install pycrypto
- "pip install pycrypto"
# install Sibyl
- "cd Sibyl && python setup.py install && cd ..;"
# get tests
- "git clone https://github.com/commial/Sibyl-tests sibyl-tests;"
# prepare env
- "export SIBYLTEST=$(pwd)/sibyl-tests"
- "export SIBYL=$(pwd)/Sibyl"
script:
# Sibyl regression tests
- "cd $SIBYL/test && python run_all_tests.py;"
# Sibyl bigger test
- "cd $SIBYLTEST && ./run.sh;"
# Sibyl regression tests with heuristics, may not end in reasonnable time
- "cd $SIBYL/test && python run_all_tests.py -f -a;"