radare2/.travis.yml

103 lines
2.8 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 16:23:26 +02:00
#- clang
# With this scarry double quotation the strings will be passed to the shell
# still quoted, which is necessary here.
2015-03-30 16:23:26 +02: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 12:42:41 +02:00
#- Analysis
2015-04-04 17:01:41 +02:00
- TESTS=anal.arm
2015-04-04 16:33:24 +02:00
- TESTS=anal.java
2015-04-09 00:49:37 +02:00
- TESTS=anal.mips
2015-04-01 12:42:41 +02:00
- TESTS=anal.others
- TESTS=anal.x86
- TESTS=esil
#- Formats
2015-04-04 17:12:04 +02:00
- TESTS=format.pe
2015-04-15 00:37:24 +02:00
- TESTS=format.pdb
- TESTS=format.mangling
- TESTS=format.msil
- TESTS=format.elf
- TESTS=format.java
- TESTS=format.dex
- TESTS=format.mach0
- TESTS=format.omf
- TESTS=format.xbe
- TESTS=format.firmware
- TESTS=format.others
2015-04-01 12:55:08 +02:00
#- (dis)assemblers
- TESTS=asm.8051
- TESTS=asm.arc
2015-04-04 17:04:46 +02:00
- TESTS=asm.arm
2015-04-01 12:55:08 +02:00
- TESTS=asm.avr
- TESTS=asm.cr16
- TESTS=asm.dalvik
- TESTS=asm.ebc
- TESTS=asm.gb
- TESTS=asm.h8300
- TESTS=asm.java
2015-05-13 01:18:55 +02:00
- TESTS=asm.lh5801
2015-04-04 15:41:29 +02:00
- TESTS=asm.mips
2015-05-13 01:18:55 +02:00
- TESTS=asm.msp430
2015-04-01 12:55:08 +02:00
- TESTS=asm.tms320
2015-05-13 01:18:55 +02:00
- TESTS=asm.ws
- TESTS=asm.x86
2015-05-13 01:18:55 +02:00
- TESTS=asm.z80
2015-04-01 12:42:41 +02:00
2015-04-06 13:21:02 +02:00
#- debugger
2015-04-06 13:34:59 +02:00
#- TESTS=dbg.linux
2015-04-09 01:13:12 +02:00
- TESTS=io # IO
2015-04-04 15:22:24 +02:00
- TESTS=commands # r2 commands related
- TESTS=tools # tools related
2015-04-01 12:42:41 +02:00
# Force build on container-based infrastructure
sudo: false
# Additional depencies like capstone are downloaded by the r2 makefiles.
addons:
apt:
packages:
- dc # GNU dc, used by r2r.
2015-04-15 00:47:16 +02:00
- cabextract
install:
- 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 16:23:26 +02: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...
# Set prefix for which we don't need sudo
- ./configure --prefix=`pwd`/install > /dev/null # TODO: Might enable some of the additional features.
2015-04-01 04:17:19 +02:00
- make -s > /dev/null
- make install > /dev/null
- export PATH=${TRAVIS_BUILD_DIR}/install/bin:${PATH}
- export LD_LIBRARY_PATH=${TRAVIS_BUILD_DIR}/install/lib:${LD_LIBRARY_PATH}
- cd radare2-regressions
- VERBOSE=1 make $TESTS # Run the tests, report only regressions as errors.
2015-04-07 12:57:10 +02:00
notifications:
irc: "chat.freenode.net#radare"