Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis: Dockerise build deps to speed up end-to-end test (#10429)
- Loading branch information
Showing
3 changed files
with
64 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM ubuntu:14.04 | ||
|
||
MAINTAINER tbd | ||
|
||
ENV PATH=$PATH:/build/install/bin:/bin/versions/node/v8.11.3/bin | ||
|
||
WORKDIR /src | ||
|
||
RUN apt-get update -qq -y && apt-get install python-software-properties -y | ||
RUN apt-get install software-properties-common -y && add-apt-repository ppa:ubuntu-toolchain-r/test -y && apt-get update -qq -y | ||
RUN apt-get install -y \ | ||
gcc-7 \ | ||
make \ | ||
bison \ | ||
curl \ | ||
git \ | ||
dc \ | ||
binutils \ | ||
cabextract \ | ||
libcurl4-openssl-dev \ | ||
libelf-dev \ | ||
libdw-dev \ | ||
jq \ | ||
pkg-config \ | ||
glib-2.0 \ | ||
libc6 \ | ||
libncurses5 \ | ||
libstdc++6 \ | ||
gnupg2 \ | ||
python-pip \ | ||
xz-utils | ||
|
||
RUN rm -rf /src/.nvm && git clone https://github.com/creationix/nvm.git /src/.nvm && (cd /src/.nvm && git checkout `git describe --abbrev=0 --tags`) && . /src/.nvm/nvm.sh && nvm install 8.11.3 | ||
|
||
CMD [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/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 |