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: 738c618a4f25f383f42a190abcf2c6cd6d52ce62 **/ scripts/Dockerfile | 23 ++++++++++++++++++++ shippable.yml | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 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..1c54a09be --- /dev/null +++ b/shippable.yml @@ -0,0 +1,62 @@ + +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 + - export CUNIT_VERSION=2.1-3 + - | + curl -sSOL https://github.com/Linaro/libcunit/releases/download/${CUNIT_VERSION}/CUnit-${CUNIT_VERSION}.tar.bz2 + tar -jxf *.bz2 + pushd CUnit* + 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 + popd + - ./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 'test-suite.log' -execdir grep -il "FAILED" {} \; -exec echo {} \; -exec cat {} \;