mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-22 13:51:30 +00:00
23 lines
1.2 KiB
Plaintext
23 lines
1.2 KiB
Plaintext
|
#!/bin/bash
|
||
|
export CC=gcc-7
|
||
|
export CXX=g++-7
|
||
|
export PKG_CONFIG_PATH=/build/pkgcfg:${PKG_CONFIG_PATH}
|
||
|
export PATH=/build/install/bin:${PATH}
|
||
|
export LD_LIBRARY_PATH=/build/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=/build/install > /dev/null
|
||
|
make -s -j2 > /dev/null
|
||
|
make install > /dev/null
|
||
|
#[ "$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
|