forked from avatartwo/avatar2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (44 loc) · 2.72 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
sudo: enabled
language: python
python:
- "2.7"
services:
- docker
before_install:
- docker pull ubuntu:17.10
- docker run -v /home/travis/build/$TRAVIS_REPO_SLUG:/avatar2 --name ubuntu -dit ubuntu:17.10
- docker exec ubuntu apt-get update
- docker exec ubuntu apt-get install -y sudo
install:
# NOTE: every command is executed starting from '/'
- docker exec ubuntu apt-get install -y git
- docker exec ubuntu apt-get install -y cmake
- docker exec ubuntu apt-get install -y python python-pip
- docker exec ubuntu apt-get install -y python3 python3-pip
- docker exec ubuntu apt-get install -y libc6-i386
- docker exec ubuntu apt-get install -y gdb
- docker exec ubuntu apt-get install -y pkg-config
- docker exec ubuntu apt-get install -y gdb-arm-none-eabi
- docker exec ubuntu apt-get install -y libcapstone3
- docker exec ubuntu apt-get install -y libcapstone-dev
- docker exec ubuntu pip2 install --upgrade pip
- docker exec ubuntu pip3 install --upgrade pip
- docker exec ubuntu pip2 install nose
- docker exec ubuntu pip3 install nose
- docker exec ubuntu pip2 install ./avatar2/
- docker exec ubuntu pip3 install ./avatar2/
## Ugly hackery to fix keystone install paths on ubuntu
- docker exec ubuntu bash -c 'cp /usr/local/lib/python2.7/dist-packages/usr/lib/python2.7/dist-packages/keystone/libkeystone.so /usr/local/lib/python2.7/dist-packages/keystone'
- docker exec ubuntu bash -c 'cp /usr/local/lib/python3.6/dist-packages/usr/lib/python3/dist-packages/keystone/libkeystone.so /usr/local/lib/python3.6/dist-packages/keystone'
script:
- docker exec ubuntu bash -c 'cd avatar2/ && nosetests-2.7 ./tests/test_remote_memoryprotocol.py'
- docker exec ubuntu bash -c 'cd avatar2/ && nosetests-2.7 ./tests/test_gdbprotocol.py'
- docker exec ubuntu bash -c 'cd avatar2/ && nosetests-3.4 ./tests/test_remote_memoryprotocol.py'
- docker exec ubuntu bash -c 'cd avatar2/ && nosetests-3.4 ./tests/test_gdbprotocol.py'
- docker exec ubuntu bash -c 'cd avatar2/ && bash ./targets/build_qemu.sh'
- docker exec ubuntu bash -c 'cd avatar2/ && nosetests-2.7 ./tests/test_qemutarget.py'
- docker exec ubuntu bash -c 'cd avatar2/ && nosetests-3.4 ./tests/test_qemutarget.py'
- docker exec ubuntu bash -c 'cd avatar2/ && python2 ./tests/hello_world.py'
- docker exec ubuntu bash -c 'cd avatar2/ && python3 ./tests/hello_world.py'
- docker exec ubuntu bash -c 'cd avatar2/ && nosetests-2.7 --processes=-1 --process-timeout=20 ./tests/smoke/target_wait.py'
- docker exec ubuntu bash -c 'cd avatar2/ && nosetests-3.4 --processes=-1 --process-timeout=20 ./tests/smoke/target_wait.py'