mirror of
https://github.com/avast/retdec.git
synced 2024-11-27 23:00:31 +00:00
78 lines
2.2 KiB
YAML
78 lines
2.2 KiB
YAML
version: '{build}'
|
|
|
|
environment:
|
|
matrix:
|
|
- CMAKE_GENERATOR: Visual Studio 15 2017 Win64
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
|
|
install:
|
|
- 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
|
|
- set Path=C:\msys64\mingw32\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+.*$/
|
|
# Temporarily enable build of this branch.
|
|
- issue-650
|
|
|
|
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
|