2016-08-14 12:39:35 +00:00
|
|
|
# travis.yml for testing radare2. Initially written in 2014-2016, by jn__.
|
2015-10-10 22:08:47 +00:00
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2014-06-13 00:45:31 +00:00
|
|
|
|
|
|
|
language: c
|
2017-06-18 01:32:38 +00:00
|
|
|
dist: trusty
|
2015-10-10 22:08:47 +00:00
|
|
|
|
2014-06-13 00:45:31 +00:00
|
|
|
compiler:
|
|
|
|
- gcc
|
2015-10-10 22:08:47 +00:00
|
|
|
- clang
|
2015-04-01 10:55:08 +00:00
|
|
|
|
2015-10-10 22:55:07 +00:00
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
- os: osx
|
|
|
|
compiler: gcc
|
|
|
|
|
2015-04-03 13:41:48 +00:00
|
|
|
sudo: false
|
|
|
|
|
2017-04-19 21:39:45 +00:00
|
|
|
env:
|
|
|
|
- CXX=g++-4.8
|
|
|
|
|
2015-04-03 13:41:48 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2017-04-19 21:39:45 +00:00
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
2015-04-03 13:41:48 +00:00
|
|
|
packages:
|
2015-10-10 22:08:47 +00:00
|
|
|
- dc
|
2015-12-08 21:20:12 +00:00
|
|
|
- binutils
|
2015-04-14 22:47:16 +00:00
|
|
|
- cabextract
|
2016-06-18 17:28:29 +00:00
|
|
|
- libcurl4-openssl-dev
|
|
|
|
- libelf-dev
|
|
|
|
- libdw-dev
|
2016-11-18 19:28:36 +00:00
|
|
|
- jq
|
2017-04-19 21:39:45 +00:00
|
|
|
- gcc-4.8
|
|
|
|
- g++-4.8
|
2015-04-03 13:41:48 +00:00
|
|
|
|
2015-11-27 22:48:47 +00:00
|
|
|
cache:
|
|
|
|
- ccache
|
|
|
|
- apt
|
2015-08-28 14:03:13 +00:00
|
|
|
|
2017-03-21 18:17:58 +00:00
|
|
|
before_script:
|
|
|
|
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install 7
|
|
|
|
|
2014-06-13 00:45:31 +00:00
|
|
|
script:
|
2018-02-27 21:26:54 +00:00
|
|
|
- export PR_NAME=$(echo $TRAVIS_PULL_REQUEST_SLUG | cut -d'/' -f1)
|
|
|
|
- export DEFAULT_NAME=$(echo $TRAVIS_REPO_SLUG | cut -d'/' -f1)
|
|
|
|
- export R2R_DEFAULT_REPO=$(doc/repo PR_REGRESSIONS | sed "s/__USER__/${DEFAULT_NAME}/g")
|
|
|
|
- export R2R_DEFAULT_BRANCH=master
|
|
|
|
- export USER_NAME=$([ -n "${PR_NAME}" ] && echo "${PR_NAME}" || echo "${DEFAULT_NAME}")
|
|
|
|
- export R2R_REPO=$(doc/repo PR_REGRESSIONS | sed "s/__USER__/${USER_NAME}/g")
|
|
|
|
- export R2R_BRANCH=$([ -n "${TRAVIS_PULL_REQUEST_BRANCH}" ] && echo "${TRAVIS_PULL_REQUEST_BRANCH}" || echo "${R2R_DEFAULT_BRANCH}")
|
|
|
|
- git clone --depth 1 --branch "${R2R_BRANCH}" "${R2R_REPO}"
|
|
|
|
- ls radare2-regressions >/dev/null 2>&1 || git clone --depth 1 --branch "${R2R_DEFAULT_BRANCH}" "${R2R_DEFAULT_REPO}"
|
2015-10-10 22:08:47 +00:00
|
|
|
- ./configure --prefix=`pwd`/install > /dev/null
|
2015-11-27 22:48:47 +00:00
|
|
|
- make -s -j2 > /dev/null
|
2015-04-03 13:41:48 +00:00
|
|
|
- make install > /dev/null
|
2016-06-18 04:21:58 +00:00
|
|
|
- export PKG_CONFIG_PATH=${TRAVIS_BUILD_DIR}/pkgcfg:${PKG_CONFIG_PATH}
|
2015-04-03 14:55:26 +00:00
|
|
|
- export PATH=${TRAVIS_BUILD_DIR}/install/bin:${PATH}
|
|
|
|
- export LD_LIBRARY_PATH=${TRAVIS_BUILD_DIR}/install/lib:${LD_LIBRARY_PATH}
|
2016-08-14 12:39:35 +00: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 01:07:20 +00:00
|
|
|
- export NOOK=1
|
2015-11-17 00:50:53 +00:00
|
|
|
- export NOREPORT=1
|
2015-04-03 14:55:26 +00:00
|
|
|
- cd radare2-regressions
|
2018-02-27 21:26:54 +00:00
|
|
|
- git remote -v
|
|
|
|
- git branch
|
2018-02-23 15:08:45 +00:00
|
|
|
- git rev-parse HEAD
|
2015-10-19 21:37:42 +00:00
|
|
|
- VERBOSE=1 make -k all
|
2015-08-28 14:01:33 +00:00
|
|
|
|
2015-04-07 10:57:10 +00:00
|
|
|
notifications:
|
|
|
|
irc: "chat.freenode.net#radare"
|
2015-10-12 17:10:25 +00:00
|
|
|
on_success: never
|
2015-10-10 19:10:37 +00:00
|
|
|
on_failure: always
|