mirror of
https://github.com/avast/retdec.git
synced 2024-11-23 21:10:13 +00:00
Try to build just llvm in travis right now
Currently all our build in Travis CI time out so let's try to regenerate the cache because it seems like it is corrupted since we upgraded to Xenail.
This commit is contained in:
parent
a93cebbef0
commit
0ddbb6b3cd
32
.travis.yml
32
.travis.yml
@ -57,23 +57,23 @@ script:
|
||||
# We use "-O0" to speed up the build.
|
||||
# "-O0" causes segfaults in LLVM if we do not use "-DNDEBUG" as well.
|
||||
- cmake -DCMAKE_CXX_FLAGS_RELEASE="-O0 -DNDEBUG" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$(pwd)/install" -DRETDEC_TESTS=ON -DRETDEC_DEV_TOOLS=ON -DRETDEC_COMPILE_YARA=OFF ..
|
||||
- time make install -j $NPROC
|
||||
- time make llvm-project -j $NPROC
|
||||
# Check that install is movable and that it does not need the build directory.
|
||||
- mv install ../retdec-install
|
||||
- cd ..
|
||||
- rm -rf build
|
||||
# Run unit tests.
|
||||
- python3 retdec-install/bin/retdec-tests-runner.py
|
||||
# Run the decompilation script.
|
||||
- python3 retdec-install/bin/retdec-decompiler.py --help
|
||||
# Run a simple decompilation.
|
||||
- echo -e '#include <stdio.h>\n#include <stdlib.h>\nint main()\n{\n printf("hello world\\n");\n return 0;\n}\n' > hello-orig.c
|
||||
- cat hello-orig.c
|
||||
- gcc -m32 -o hello hello-orig.c
|
||||
- ./hello
|
||||
- python3 retdec-install/bin/retdec-decompiler.py hello
|
||||
- cat hello.c
|
||||
- grep "int main(int argc, char \*\* argv)" hello.c
|
||||
#- mv install ../retdec-install
|
||||
#- cd ..
|
||||
#- rm -rf build
|
||||
## Run unit tests.
|
||||
#- python3 retdec-install/bin/retdec-tests-runner.py
|
||||
## Run the decompilation script.
|
||||
#- python3 retdec-install/bin/retdec-decompiler.py --help
|
||||
## Run a simple decompilation.
|
||||
#- echo -e '#include <stdio.h>\n#include <stdlib.h>\nint main()\n{\n printf("hello world\\n");\n return 0;\n}\n' > hello-orig.c
|
||||
#- cat hello-orig.c
|
||||
#- gcc -m32 -o hello hello-orig.c
|
||||
#- ./hello
|
||||
#- python3 retdec-install/bin/retdec-decompiler.py hello
|
||||
#- cat hello.c
|
||||
#- grep "int main(int argc, char \*\* argv)" hello.c
|
||||
|
||||
branches:
|
||||
only:
|
||||
|
Loading…
Reference in New Issue
Block a user