-
Notifications
You must be signed in to change notification settings - Fork 33
/
.travis.yml
94 lines (80 loc) · 2.7 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# .travis.yml for haystack
language: python
python:
- "2.7"
- "3.5"
# we are using pre-dumped tests files
# and not testing the dumping capacity of haystack.
# travis-ci does not support llvm 3.7 yet, so lets not put a bunch
# of dependencies due to ctypeslib2.
# this test will start from already existing ctypeslib2 generated files.
# system python package will not be used. http://docs.travis-ci.com/user/languages/python/.
# numpy is already installed
# we can use containers.
sudo: false
# travis-ci upgrades it. so it is already there.
#addons:
# apt:
# packages:
# - unzip
# install any dependencies required
install:
## we need coveralls
- pip -q install coveralls
## install with requirements
- pip install -r requirements.txt
before_script:
# we also need the large test files (memory dumps)
- mkdir -p test/dumps/putty
- mkdir -p test/dumps/ssh
- mkdir -p test/dumps/vol
- mkdir -p test/dumps/minidump
# win7 x32
- wget https://www.dropbox.com/s/ez2t8u0ewzpvfay/putty.1.dump.zip
- unzip -q putty.1.dump.zip
- mv putty.1.dump test/dumps/putty/
- wget https://www.dropbox.com/s/heornlu0bljbegs/putty.7124.dump.zip
- unzip -q putty.7124.dump.zip
- mv putty.7124.dump test/dumps/putty/
# win7 x64
- wget https://www.dropbox.com/s/1b6xytpvbpabg7b/keepass.test.zip
- unzip -q keepass.test.zip
- mv keepass.test test/dumps/
# linux
- wget https://www.dropbox.com/s/wprgq98hcv9kxsx/ssh.1.tgz
- tar zxf ssh.1.tgz
- mv ssh.1 test/dumps/ssh/
- wget https://www.dropbox.com/s/oh227t9jzh9ydh1/ssh.x64.6653.dump.tgz
- tar zxf ssh.x64.6653.dump.tgz
- mv ssh.x64.6653.dump test/dumps/ssh/
# process extracted from volatility
- wget https://www.dropbox.com/s/1g3ywwpqv5bg5za/zeus.vmem.1668.dump.zip
- unzip -P infected zeus.vmem.1668.dump.zip
- mv zeus.vmem.1668.dump test/dumps/vol/
- wget https://www.dropbox.com/s/aj5sy48imxr9kwz/zeus.vmem.856.dump.zip
- unzip -P infected zeus.vmem.856.dump.zip
- mv zeus.vmem.856.dump test/dumps/vol/
# winxp 64
- wget https://www.dropbox.com/s/8x28lgd6ljgjitl/cmd.dmp.gz
- gunzip cmd.dmp.gz
- mv cmd.dmp test/dumps/minidump
- wget https://www.dropbox.com/s/emj1mh86bdep51c/alg.dmp.gz
- gunzip alg.dmp.gz
- mv alg.dmp test/dumps/minidump
# we need the simple memory tests.
- wget https://www.dropbox.com/s/9w5ya3d7b4qaqc3/src-2978ba6eba0b8d31b183354fc20eb17e280143b0.tgz
- tar zxf src-2978ba6eba0b8d31b183354fc20eb17e280143b0.tgz -C test/
script:
# run tests. Need root for memory dumps tests.
# - python setup.py test
- coverage run --source=haystack setup.py test
after_success:
- coveralls
after_failure:
- coveralls
- find
# disable email notifications
notifications:
email:
on_success: never
on_failure: never