mirror of
https://github.com/avast/retdec.git
synced 2024-11-23 21:10:13 +00:00
travis.yml: build and run unit tests only on macOS
Linux builds are often timeouting when unit tests are enabled.
This commit is contained in:
parent
bc9b912d5a
commit
1bda328716
@ -56,14 +56,15 @@ script:
|
||||
- mkdir build && cd build
|
||||
# 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 ..
|
||||
- cmake -DCMAKE_CXX_FLAGS_RELEASE="-O0 -DNDEBUG" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$(pwd)/install" -DRETDEC_COMPILE_YARA=OFF ..
|
||||
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then cmake -DRETDEC_TESTS=ON -DRETDEC_DEV_TOOLS=ON .. ; fi
|
||||
- time make install -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
|
||||
if [ "$TRAVIS_OS_NAME" = "osx" ]; then python3 retdec-install/bin/retdec-tests-runner.py ; fi
|
||||
# Run the decompilation script.
|
||||
- python3 retdec-install/bin/retdec-decompiler.py --help
|
||||
# Run a simple decompilation.
|
||||
|
Loading…
Reference in New Issue
Block a user