radare2/.travis.yml

66 lines
2.1 KiB
YAML
Raw Normal View History

# travis.yml for testing radare2. Initially written in 2014, by jn__.
# Validate with http://yaml.travis-ci.org/.
language: c
compiler:
- gcc
2015-03-30 14:23:26 +00:00
#- clang
# With this scarry double quotation the strings will be passed to the shell
# still quoted, which is necessary here.
2015-03-30 14:23:26 +00:00
#- '"clang -fsanitize=address"'
#- '"clang -fsanitize=memory -fsanitize-memory-track-origins"'
#- '"clang -fsanitize=thread"'
# Put different test categories in different jobs. This will also help keeping
# the logs shorter than 10k lines (the maximum that's displayed).
env:
# TODO: run t.archos, once we have Linux tests in there.
2015-04-01 10:42:41 +00:00
#- Analysis
- TESTS=anal.arm
- TESTS=anal.java
- TESTS=anal.mips
- TESTS=anal.others
- TESTS=anal.x86
- TESTS=anal.x86
- TESTS=esil
#- Formats
- TESTS=format.pe
- TESTS=format.pe
- TESTS=format.pe
- TESTS=format.pe
- TESTS=format.pe
- TESTS=format.pe
2015-03-30 20:33:19 +00:00
- TESTS=commands # r2 commands related
2015-03-30 20:29:02 +00:00
- TESTS=asm # (dis)assemblers
2015-03-30 20:33:19 +00:00
- TESTS=tools # tools related
2015-03-30 20:29:02 +00:00
- TESTS=formats # file formats
2015-04-01 10:42:41 +00:00
2015-03-30 20:29:02 +00:00
# Additional depencies like capstone are downloaded by the r2 makefiles.
install:
- sudo apt-get install dc # GNU dc, used by r2r.
- git clone `doc/repo REGRESSIONS`
# This little hack will prevent the test names from being erased in the
# travis logfile.
- sed -i 's/\\r//' radare2-regressions/tests.sh
script:
# llvm-symbolizer isn't in PATH, so we need this.
# (Also, YAML doesn't like underscores)
2015-03-30 14:23:26 +00:00
#- export SYMBOLIZER=/usr/local/clang-3.4/bin/llvm-symbolizer
#- export ASAN_SYMBOLIZER_PATH=$SYMBOLIZER
#- export MSAN_SYMBOLIZER_PATH=$SYMBOLIZER
#- 'export TSAN_OPTIONS=external_symbolizer_path=$SYMBOLIZER'
# Limit the stack size (to 32MiB) to make ThreadSanitizer happy.
- ulimit -s 32768
# Now on to actually building stuff...
2015-04-01 02:17:19 +00:00
- ./configure > /dev/null # TODO: Might enable some of the additional features.
- make -s > /dev/null
- sudo make install > /dev/null
- cd radare2-regressions
# Run the tests, report only regressions as errors.
2015-03-30 20:29:02 +00:00
- VERBOSE=1 make $TESTS