forked from avast/retdec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
80 lines (71 loc) · 2.4 KB
/
.appveyor.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
version: '{build}'
environment:
WINFLEXBISON_ARCHIVE: winflexbison-2.5.16.zip
matrix:
- CMAKE_GENERATOR: Visual Studio 14 2015 Win64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
matrix:
fast_finish: true
install:
- appveyor DownloadFile "https://downloads.sourceforge.net/project/winflexbison/old_versions/%WINFLEXBISON_ARCHIVE%"
- 7z x -y -owinflexbison\ "%WINFLEXBISON_ARCHIVE%" > nul
- set Path=%CD%\winflexbison;%Path%
- set Path=C:\Python36;%Path%
before_build:
- cmd: mkdir build
- cmd: cd build
- cmd: cmake -DCMAKE_CXX_FLAGS_RELEASE="/Od -DNDEBUG" -G"%CMAKE_GENERATOR%" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="install" -DRETDEC_DEV_TOOLS=ON -DRETDEC_COMPILE_YARA=OFF ..
build_script:
- cmd: cmake --build . --config Release --target install -- -m
test_script:
# Check that the installation directory is movable and that it does not need
# the build directory.
- cmd: mv install ../retdec-install
- cmd: cd ..
# Run the decompilation script.
- cmd: C:\Python36\python.exe retdec-install\bin\retdec-decompiler.py --help
# Run a simple decompilation.
- cmd: C:\msys64\usr\bin\echo.exe -e "#include <stdio.h>\n#include <stdlib.h>\nint main()\n{\n printf(\"hello world\\\n\");\n return 0;\n}\n" > hello-orig.c
- cmd: cat hello-orig.c
# Make sure 32-bit GCC will be used.
- set Path=C:\MinGW\bin;%Path%
- cmd: gcc.exe -o hello.exe hello-orig.c
- cmd: hello.exe
- cmd: C:\Python36\python.exe retdec-install\bin\retdec-decompiler.py hello.exe
- cmd: cat hello.exe.c
- cmd: grep "int main(int argc, char \*\* argv)" hello.exe.c
branches:
only:
# Pushes and PRs to the master branch.
- master
# Version tags.
- /^v?\d+\.\d+.*$/
skip_commits:
files:
# Exact files.
- .travis.yml
- CITATION
- Dockerfile
- Dockerfile.dev
- LICENSE
- LICENSE-THIRD-PARTY
# All .gitignore files within repository.
- '**/.gitignore'
# All *.md files within repository.
- '**/*.md'
# All README files within repository.
- '**/README'
- '**/README.txt'
- '**/readme'
- '**/readme.txt'
# All files within doc directory, recursive.
- doc/
# All files within scripts/type_extractor directory, recursive.
- scripts/type_extractor/
notifications:
- provider: Email
to:
- '{{commitAuthorEmail}}'
on_build_success: false
on_build_failure: true
on_build_status_changed: true