mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-18 10:46:38 +00:00
ed73ea036c
* fixing travis with docker. Env vars weren't passed to docker, so it was compiling always in the same way and not with clang/gcc * replacing damo22/r2-travis with radareorg/r2-travis * introduce an ASAN build on travis
23 lines
1.2 KiB
Bash
23 lines
1.2 KiB
Bash
#!/bin/bash
|
|
set -x
|
|
|
|
export PKG_CONFIG_PATH=${TRAVIS_BUILD_DIR}/pkgcfg:${PKG_CONFIG_PATH}
|
|
export PATH=${TRAVIS_BUILD_DIR}/install/bin:${PATH}
|
|
export LD_LIBRARY_PATH=${TRAVIS_BUILD_DIR}/install/lib:${LD_LIBRARY_PATH}
|
|
git clone --depth 1 --branch "${R2R_BRANCH}" "${R2R_REPO}" || true # If cloning fails that's not an error: we simply fallback to master.
|
|
ls radare2-regressions >/dev/null 2>&1 || git clone --depth 1 --branch "${R2R_DEFAULT_BRANCH}" "${R2R_DEFAULT_REPO}"
|
|
./configure --prefix=${TRAVIS_BUILD_DIR}/install > /dev/null || exit 1
|
|
make -s -j2 > /dev/null || exit 1
|
|
make install > /dev/null || exit 1
|
|
#[ "$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"
|
|
export NOOK=1
|
|
export NOREPORT=1
|
|
cd radare2-regressions
|
|
git remote -v
|
|
git branch
|
|
git rev-parse HEAD
|
|
VERBOSE=1 make -k all
|