Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis: build and test more on centos7
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
- Loading branch information
1 parent
9c04609
commit ff3c0e5
Showing
2 changed files
with
27 additions
and
2 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,26 @@ | ||
#!/bin/bash | ||
|
||
set -uo pipefail | ||
set -e | ||
|
||
# We're limited as to what we want to bother to run on CentOS7 | ||
# It's fairly old and some of the things (e.g. build+run qemu) we don't | ||
# want to bother doing. | ||
|
||
export CROSS=/opt/cross/gcc-4.8.0-nolibc/powerpc64-linux/bin/powerpc64-linux- | ||
|
||
MAKE_J=`grep -c processor /proc/cpuinfo` | ||
|
||
make -j${MAKE_J} all | ||
make -j${MAKE_J} check | ||
(make clean; cd external/gard && CROSS= make -j${MAKE_J}) | ||
(cd external/pflash; make -j${MAKE_J}) | ||
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 |