1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
summary: Build (on Ubuntu)
systems: [ubuntu-*]
execute: |
# Grab builds of Mir git master
add-apt-repository ppa:mir-team/dev
apt-get install --yes \
dpkg-dev \
libwayland-dev \
cmake \
clang \
g++ \
pkg-config \
libgtest-dev \
google-mock \
libboost-dev \
mir-test-tools
# Check that we build…
cd $SPREAD_PATH
cd $(mktemp --directory)
cmake \
-DCMAKE_C_FLAGS="-D_FORTIFY_SOURCE=2" \
-DCMAKE_CXX_FLAGS="-D_FORTIFY_SOURCE=2" \
$SPREAD_PATH
make -j$(nproc)
# …and run the Mir tests, but don't fail on them, unless we fail with a signal
# TODO: Store the set of passing tests in the Travis cache, and fail if a test which
# previously passed now fails.
./wlcs /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/mir/miral_wlcs_integration.so || {
test $? -lt 128 -o $? -gt 165
}
|