File: ci.sh

package info (click to toggle)
rust-mpris 2.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 496 kB
  • sloc: sh: 50; makefile: 2
file content (18 lines) | stat: -rwxr-xr-x 392 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# Run this on CI, inside a X11 instance.

set -ex

export RUST_BACKTRACE=1

if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
  echo "Starting dbus"
  # dbus-launch will quote values itself, so quoting the string will actually
  # not set values correctly.
  # shellcheck disable=SC2046
  export $(dbus-launch)
fi

cargo build --verbose &&
  cargo test --verbose &&
  cargo doc --no-deps