From: Tom Trahan <t...@shippable.com> --- /** Email created from pull request 231 (ttrahan:master) ** https://github.com/Linaro/odp/pull/231 ** Patch: https://github.com/Linaro/odp/pull/231.patch ** Base sha: ec0c3145fcafa09ae3a79875e7e07dd4794583cc ** Merge commit sha: a39132d538d5b7f3c162c978dc26346178e2eb06 **/ scripts/Dockerfile | 23 ++++++++++++++++++++++ shippable.yml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 scripts/Dockerfile create mode 100644 shippable.yml
diff --git a/scripts/Dockerfile b/scripts/Dockerfile new file mode 100644 index 000000000..ab879c102 --- /dev/null +++ b/scripts/Dockerfile @@ -0,0 +1,23 @@ +FROM drydockaarch64/u16:v5.10.1 + +RUN if $(sudo update-alternatives --list gcc); \ + then sudo update-alternatives --remove-all gcc; \ + fi + +RUN sudo apt-get update && sudo apt-get install -yy \ + autoconf \ + automake \ + ccache \ + clang-3.8 \ + gcc-4.8 \ + graphviz \ + kmod \ + mscgen \ + libpcap-dev \ + libssl-dev \ + libtool \ + linux-headers-`uname -r` \ + ruby-dev + +RUN sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10 +RUN sudo ln -s /usr/bin/clang-3.8 /usr/bin/clang diff --git a/shippable.yml b/shippable.yml new file mode 100644 index 000000000..72671637c --- /dev/null +++ b/shippable.yml @@ -0,0 +1,56 @@ +language: c + +compiler: + - gcc + - clang + +env: + matrix: + - CONF="" + # - CONF="--disable-abi-compat" + # - CONF="--enable-schedule-sp" + # - CONF="--enable-schedule-iquery" + # - CONF="--enable-dpdk-zero-copy" + - CROSS_ARCH="arm64" + # - CROSS_ARCH="armhf" CFLAGS="-march=armv7-a" + # - CROSS_ARCH="powerpc" + # - CROSS_ARCH="i386" + global: + - PLACEHOLDER="" + +build: + pre_ci: + # use Dockerfile to install additional CI dependencies + - docker build -t=odp/dev ./scripts + + # use image built in 'pre_ci' for CI job + pre_ci_boot: + image_name: odp/dev + image_tag: latest + pull: false + options: + + ci: + - echo 1000 | sudo tee /proc/sys/vm/nr_hugepages + - sudo mkdir -p /mnt/huge + - sudo mount -t hugetlbfs nodev /mnt/huge + - mkdir -p /dev/shm/odp + - | + libtoolize --force --copy + aclocal + autoheader + automake --add-missing --include-deps --copy + autoconf + ./configure --prefix=$HOME/cunit-install --enable-debug --enable-automated --enable-basic --enable-console --enable-examples --enable-test || cat config.log + make + sudo make install + - ./bootstrap + - export PKG_CONFIG_PATH="$HOME/cunit-install/lib/pkgconfig:${PKG_CONFIG_PATH}" + - export LD_LIBRARY_PATH="$HOME/cunit-install/lib:$LD_LIBRARY_PATH" + - ./configure --disable-test-perf + - make + - sudo LD_LIBRARY_PATH="$HOME/cunit-install/lib:$LD_LIBRARY_PATH" ODP_SHM_DIR=/dev/shm/odp make check + + on_failure: + - cat config.log + - find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done