Skip to content

Commit 724af66

Browse files
committed
travis: Require Ubuntu 18.04 to pass, fix on ppc64le
Signed-off-by: Stewart Smith <[email protected]>
1 parent 04a50cf commit 724af66

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ matrix:
2727
allow_failures:
2828
- env: RUN_ON_CONTAINER=fedora-rawhide
2929
- env: RUN_ON_CONTAINER=debian-unstable
30-
- env: RUN_ON_CONTAINER=ubuntu-18.04
3130
exclude:
3231
- os: linux-ppc64le
3332
env: RUN_ON_CONTAINER=ubuntu-12.04

opal-ci/Dockerfile-ubuntu-18.04

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
FROM ubuntu:18.04
22
ENV DEBIAN_FRONTEND noninteractive
33
RUN if [ `arch` != "ppc64le" ]; then apt-get update -qq && apt-get install -y gcc-powerpc64le-linux-gnu; fi
4-
RUN apt-get update -qq && apt-get install -y gcc ccache expect libssl-dev wget curl xterm device-tree-compiler build-essential gcc python g++ pkg-config libz-dev libglib2.0-dev libpixman-1-dev libfdt-dev git libstdc++6 valgrind libtcl8.6 gcc-arm-linux-gnueabi clang qemu-system-ppc
4+
RUN apt-get update -qq && apt-get install -y gcc-arm-linux-gnueabi || true
5+
RUN apt-get update -qq && apt-get install -y gcc ccache expect libssl-dev wget curl xterm device-tree-compiler build-essential gcc python g++ pkg-config libz-dev libglib2.0-dev libpixman-1-dev libfdt-dev git libstdc++6 valgrind libtcl8.6 clang qemu-system-ppc
56
RUN if [ `arch` = "x86_64" ]; then curl -L -O http://public.dhe.ibm.com/software/server/powerfuncsim/p8/packages/v1.0-2/systemsim-p8_1.0-2_amd64.deb; dpkg -i systemsim-p8_1.0-2_amd64.deb; fi
67
RUN if [ `arch` = "x86_64" ]; then curl -O http://public.dhe.ibm.com/software/server/powerfuncsim/p9/packages/v1.1-0/systemsim-p9-1.1-0-trusty_amd64.deb; dpkg -i systemsim-p9-1.1-0-trusty_amd64.deb; fi
78
COPY . /build/

opal-ci/build-ubuntu-18.04.sh

+8-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ make -j${MAKE_J} all
1212
./opal-ci/fetch-debian-jessie-installer.sh
1313
make -j${MAKE_J} check
1414
(make clean; cd external/gard && CROSS= make -j${MAKE_J})
15-
( cd external/pflash;
16-
echo "Building for ARM..."
17-
make clean && make distclean
18-
CROSS_COMPILE=arm-linux-gnueabi- make || { echo "ARM build failed"; exit 1; }
19-
)
15+
# because some ppc64le versions don't have arm cross compiler
16+
if which arm-linux-gnueabi-gcc; then
17+
( cd external/pflash;
18+
echo "Building for ARM..."
19+
make clean && make distclean
20+
CROSS_COMPILE=arm-linux-gnueabi- make || { echo "ARM build failed"; exit 1; }
21+
)
22+
fi
2023
(cd external/pflash; make clean && make distclean && make)
2124
make clean
2225
SKIBOOT_GCOV=1 make -j${MAKE_J}

0 commit comments

Comments
 (0)