Skip to content

Commit

Permalink
Fix grammar in .appveyor.yml and .travis.yml files.
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rvac committed Feb 6, 2018
1 parent 4b66a11 commit 1db0cb6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
16 changes: 9 additions & 7 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,28 @@ before_build:

build_script:
- cmd: cmake --build . --config Release -- /m
# Get wget, etc. needed for install step. If we do this earlier, build step fails.
# Otherwise, we could use `cmake --build . --config Release --target install -- -m` and save a few seconds.
# Get wget, etc. needed for the install step. If we do this earlier, the build
# step fails.
# Otherwise, we could use `cmake --build . --config Release --target install -- -m`
# and save a few seconds.
- set Path=C:\msys64\usr\bin;C:\msys64\mingw64\bin;%Path%
- cmd: cmake --build . --config Release --target install

test_script:
# Test that install is movable and that it does not need build directory.
# Check that install is movable and that it does not need the build directory.
- cmd: mv install ../retdec-install
- cmd: cd ..
# Run unit tests.
- cmd: C:\msys64\usr\bin\bash.exe retdec-install\bin\retdec-tests-runner.sh
# Run decompilation script.
# Run the decompilation script.
- cmd: C:\msys64\usr\bin\bash.exe retdec-install\bin\retdec-decompiler.sh --help
# Run simple decompilation.
# 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.
# Make sure 32-bit GCC will be used.
- set Path=C:\MinGW\bin;%Path%
- cmd: gcc.exe -o hello.exe hello-orig.c
# Prefer msys64 after we used 32-bit compiler.
# Prefer msys64 after we have used 32-bit GCC.
- set Path=C:\msys64\usr\bin;C:\msys64\mingw64\bin;%Path%
- cmd: hello.exe
- cmd: C:\msys64\usr\bin\bash.exe retdec-install\bin\retdec-decompiler.sh hello.exe
Expand Down
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,26 +66,26 @@ before_script:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH"; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ln -s /usr/local/bin/greadlink /usr/local/bin/readlink; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"; fi
# We need to add ccache before everything else in PATH.
# We need to add ccache before everything else into PATH.
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi

script:
- mkdir build && cd build
# We use "-O0" to speed-up 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 ..
- time make install -j $NPROC
# Test that install is movable and that it does not need build directory.
# 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.
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then /usr/local/bin/bash retdec-install/bin/retdec-tests-runner.sh; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./retdec-install/bin/retdec-tests-runner.sh; fi
# Run decompilation script.
# Run the decompilation script.
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then /usr/local/bin/bash retdec-install/bin/retdec-decompiler.sh --help; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./retdec-install/bin/retdec-decompiler.sh --help; fi
# Run simple decompilation.
# 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
Expand Down

0 comments on commit 1db0cb6

Please sign in to comment.