aboutsummaryrefslogtreecommitdiff
path: root/opal-ci
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2018-12-12 15:32:51 +1030
committerStewart Smith <stewart@linux.ibm.com>2018-12-13 10:23:17 +1100
commit2033a6c3ebbe504e4edd54a4edd85faff644177d (patch)
treedb57f06fc533683d2b81251a87c4e2ca72124c83 /opal-ci
parentc1e65823dc08fb6c5b8b4fe2c4ed9c542f9b2d6d (diff)
downloadskiboot-2033a6c3ebbe504e4edd54a4edd85faff644177d.zip
skiboot-2033a6c3ebbe504e4edd54a4edd85faff644177d.tar.gz
skiboot-2033a6c3ebbe504e4edd54a4edd85faff644177d.tar.bz2
ci: Disable GCOV builds in ubuntu-latest
They are known to be broken with GCC 8.2: https://github.com/open-power/skiboot/issues/206 Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'opal-ci')
-rwxr-xr-x[l---------]opal-ci/build-ubuntu-latest.sh37
1 files changed, 36 insertions, 1 deletions
diff --git a/opal-ci/build-ubuntu-latest.sh b/opal-ci/build-ubuntu-latest.sh
index d8840a9..1b79b46 120000..100755
--- a/opal-ci/build-ubuntu-latest.sh
+++ b/opal-ci/build-ubuntu-latest.sh
@@ -1 +1,36 @@
-build-ubuntu-18.04.sh \ No newline at end of file
+#!/bin/bash
+
+set -uo pipefail
+set -e
+set -vx
+
+MAKE_J=$(nproc)
+
+export CROSS="ccache powerpc64le-linux-gnu-"
+
+make -j${MAKE_J} all
+./opal-ci/fetch-debian-jessie-installer.sh
+make -j${MAKE_J} check
+(make clean; cd external/gard && CROSS= make -j${MAKE_J})
+( cd external/pflash;
+ echo "Building for ARM..."
+ make clean && make distclean
+ CROSS_COMPILE=arm-linux-gnueabi- make || { echo "ARM build failed"; exit 1; }
+)
+(cd external/pflash; make clean && make distclean && make)
+# GCOV build disabled for GCC 8.2
+# https://github.com/open-power/skiboot/issues/206
+# make clean
+# SKIBOOT_GCOV=1 make -j${MAKE_J}
+# SKIBOOT_GCOV=1 make -j${MAKE_J} check
+
+make clean
+rm -rf builddir
+mkdir builddir
+make SRC=$(pwd) -f ../Makefile -C builddir -j${MAKE_J}
+make clean
+
+echo "Building with clang..."
+make clean
+make -j${MAKE_J} CC=clang
+make -j${MAKE_J} CC=clang check