File: task.yaml

package info (click to toggle)
wlcs 1.8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,528 kB
  • sloc: cpp: 14,211; xml: 7,744; ansic: 952; sh: 164; makefile: 33
file content (35 lines) | stat: -rw-r--r-- 948 bytes parent folder | download
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
    }