@@ -2,34 +2,6 @@ language: shell
22matrix :
33 fast_finish : true
44 include :
5- - name : " Python 3.6 on Linux"
6- os : linux
7- dist : bionic
8- language : python
9- python : " 3.6"
10- cache : pip
11- install :
12- - pip3 install .
13- before_script :
14- - cd tests
15- script :
16- - ./test_elf.sh
17-
18- - name : " Python 3.7 on Linux"
19- os : linux
20- dist : bionic
21- language : python
22- python : " 3.7"
23- cache : pip
24- install :
25- - pip3 install flake8
26- - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
27- - pip3 install .
28- before_script :
29- - cd tests
30- script :
31- - ./test_elf.sh
32-
335 - name : " Python 3.7 on OSX"
346 os : osx
357 osx_image : xcode10.1
@@ -61,101 +33,3 @@ matrix:
6133 script :
6234 - ./test_macho.sh
6335
64- - name : " Python 3.6.8 on Windows"
65- os : windows
66- language : shell
67- env :
68- - PATH="/c/Python36:/c/Python36/Scripts:$PATH"
69- cache :
70- directories :
71- # - $HOME/AppData/Local/Temp/chocolatey
72- - $HOME/AppData/Local/pip/Cache
73- - /c/Python36
74- # - $HOME/AppData/Local/NuGet/Cache
75- before_install :
76- - |
77- if [[ ! -f /c/Python36/python ]]; then
78- choco install python --version=3.6.8
79- fi
80- # Prevent worker settings failure
81- - powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableArchiveScanning \$true'"
82- - powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableBehaviorMonitoring \$true'"
83- - powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableRealtimeMonitoring \$true'"
84- # - choco install kb2999226
85- # - python -m pip install --upgrade pip
86- install :
87- # - pip3 install wheel 'capstone>=4.0.1' 'pefile>=2019.4.18' 'python-registry>=1.3.1' 'unicorn>=1.0.2rc3'
88- # - |
89- # if [ ! -f $HOME/dist/keystone*.zip ]; then
90- # git clone https://github.com/keystone-engine/keystone && \
91- # cd keystone && \
92- # mkdir build && \
93- # cd build && \
94- # cmd.exe //C 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat' amd64 '&' cmd.exe //C '..\nmake-dll.bat' '&&' nmake instalL && \
95- # cd ../bindings/python && \
96- # python setup.py install && \
97- # python setup.py bdist --formats=zip && \
98- # cp dist/*.zip $HOME/dist/ && \
99- # cp /c/Program\ Files\ \(x86\)/keystone/lib/keystone.dll /c/Python36/Lib/site-packages/keystone/ && \
100- # cp /c/Program\ Files\ \(x86\)/keystone/lib/keystone.dll $HOME/dist/;
101- # else
102- # unzip $HOME/dist/*.zip -d /c && \
103- # cp $HOME/dist/keystone.dll /c/Python36/Lib/site-packages/keystone/;
104- # fi
105- - cd $TRAVIS_BUILD_DIR
106- - pip3 install .
107- # - cp /c/Program\ Files\ \(x86\)/keystone/lib/keystone.dll /c/Python36/Lib/site-packages/keystone/
108- before_script :
109- - cmd.exe //C 'examples\scripts\dllscollector.bat'
110- - cd $TRAVIS_BUILD_DIR/examples/rootfs/x86_windows/bin
111- - unzip -Pinfected wannacry.bin.zip
112- - unzip -Pinfected UselessDisk.bin.zip
113- - unzip -Pinfected GandCrab502.bin.zip
114- - unzip -Pinfected al-khaser.bin.zip
115- - unzip -Pinfected sality.dll.zip
116- - cd $TRAVIS_BUILD_DIR/tests
117- script :
118- - cmd.exe //C '.\test_pe.bat'
119-
120- - name : " Python 3.6 on Docker"
121- services :
122- - docker
123- # cache:
124- # bundler: true
125- # directories:
126- # - $HOME/docker
127- before_script :
128- # - docker build -t qiling:1.1 .
129- # - docker load -i $HOME/docker/images.tar || true
130- # - |
131- # if [[ ! $(docker images -q qiling:1.1) ]]; then
132- # docker build -t qiling:1.1 . && docker save -o $HOME/docker/images.tar qiling:1.1;
133- # fi
134- # - docker run -dt --name qiling -v ${TRAVIS_BUILD_DIR}:/qiling qiling:1.1
135- # - docker exec qiling pip3 install -r requirements.txt
136- # - docker exec qiling python3 setup.py install
137- script :
138- - docker run -it --rm -v ${TRAVIS_BUILD_DIR}:/qiling qilingframework/qiling:dev bash -c "pip3 install . && cd tests && ./test_elf.sh"
139- # - docker exec qiling bash -c "cd tests && ./test_elf.sh"
140-
141- # - name: "Python 3.6 on WSL1 Ubuntu"
142- # os: windows
143- # language: shell
144- # before_install:
145- # - choco install wsl-ubuntu-1804
146- # - wsl apt update
147- # - wsl DEBIAN_FRONTEND=noninteractive apt dist-upgrade -y
148- # - wsl DEBIAN_FRONTEND=noninteractive apt install -y python3-pip cmake
149- # - wsl pip3 install --upgrade pip
150- # install:
151- # - wsl pip3 install -r requirements.txt
152- # - wsl python3 setup.py install
153- # before_script:
154- # - MSYS_NO_PATHCONV=1 wsl cp $(wsl python3 -c "import site; print(site.getsitepackages()[0])")$(wsl python3 -c "import site; print(site.getsitepackages()[1])")/keystone/libkeystone.so $(wsl python3 -c "import site; print(site.getsitepackages()[0])")/keystone/
155- # - cd tests
156- # script:
157- # - wsl python3 test_all.py
158-
159- # allow_failures:
160- # - os: osx
161- # - services: docker
0 commit comments