2016-08-14 14:39:35 +02:00
|
|
|
# travis.yml for testing radare2. Initially written in 2014-2016, by jn__.
|
2015-10-11 00:08:47 +02:00
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2014-06-13 02:45:31 +02:00
|
|
|
|
|
|
|
language: c
|
2015-10-11 00:08:47 +02:00
|
|
|
|
2014-06-13 02:45:31 +02:00
|
|
|
compiler:
|
|
|
|
- gcc
|
2015-10-11 00:08:47 +02:00
|
|
|
- clang
|
2015-04-01 12:55:08 +02:00
|
|
|
|
2015-10-11 00:55:07 +02:00
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
- os: osx
|
|
|
|
compiler: gcc
|
|
|
|
|
2015-04-03 15:41:48 +02:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2015-10-11 00:08:47 +02:00
|
|
|
- dc
|
2015-12-08 22:20:12 +01:00
|
|
|
- binutils
|
2015-04-15 00:47:16 +02:00
|
|
|
- cabextract
|
2016-06-18 13:28:29 -04:00
|
|
|
- libcurl4-openssl-dev
|
|
|
|
- libelf-dev
|
|
|
|
- libdw-dev
|
2016-11-18 20:28:36 +01:00
|
|
|
- jq
|
2015-04-03 15:41:48 +02:00
|
|
|
|
2015-11-27 23:48:47 +01:00
|
|
|
cache:
|
|
|
|
- ccache
|
|
|
|
- apt
|
2015-08-28 16:03:13 +02:00
|
|
|
|
2014-06-13 02:45:31 +02:00
|
|
|
script:
|
2015-11-27 23:48:47 +01:00
|
|
|
- git clone --depth 1 `doc/repo REGRESSIONS`
|
2015-10-11 00:08:47 +02:00
|
|
|
- ./configure --prefix=`pwd`/install > /dev/null
|
2015-11-27 23:48:47 +01:00
|
|
|
- make -s -j2 > /dev/null
|
2015-04-03 15:41:48 +02:00
|
|
|
- make install > /dev/null
|
2016-06-18 00:21:58 -04:00
|
|
|
- export PKG_CONFIG_PATH=${TRAVIS_BUILD_DIR}/pkgcfg:${PKG_CONFIG_PATH}
|
2015-04-03 16:55:26 +02:00
|
|
|
- export PATH=${TRAVIS_BUILD_DIR}/install/bin:${PATH}
|
|
|
|
- export LD_LIBRARY_PATH=${TRAVIS_BUILD_DIR}/install/lib:${LD_LIBRARY_PATH}
|
2016-08-14 14:39:35 +02:00
|
|
|
#- [ "$TRAVIS_OS_NAME" != "osx" ] && mkdir -p /tmp/kcov && pushd /tmp/kcov
|
|
|
|
#- [ "$TRAVIS_OS_NAME" != "osx" ] && mkdir ${TRAVIS_BUILD_DIR}/kcov
|
|
|
|
#- [ "$TRAVIS_OS_NAME" != "osx" ] && wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && tar xzf master.tar.gz && mkdir kcov-master/build && cd kcov-master/build && cmake .. && make && make install DESTDIR=../tmp && popd
|
|
|
|
#- [ "$TRAVIS_OS_NAME" != "osx" ] && export KCOV="/tmp/kcov/kcov-master/tmp/usr/local/bin/kcov --coveralls-id=$TRAVIS_JOB_ID ${TRAVIS_BUILD_DIR}/kcov"
|
2015-11-05 02:07:20 +01:00
|
|
|
- export NOOK=1
|
2015-11-17 01:50:53 +01:00
|
|
|
- export NOREPORT=1
|
2015-04-03 16:55:26 +02:00
|
|
|
- cd radare2-regressions
|
2015-10-19 23:37:42 +02:00
|
|
|
- VERBOSE=1 make -k all
|
2016-06-09 15:31:39 +00:00
|
|
|
- make unit_tests
|
2015-08-28 16:01:33 +02:00
|
|
|
|
2015-04-07 12:57:10 +02:00
|
|
|
notifications:
|
|
|
|
irc: "chat.freenode.net#radare"
|
2015-10-12 19:10:25 +02:00
|
|
|
on_success: never
|
2015-10-10 21:10:37 +02:00
|
|
|
on_failure: always
|