language: rust cache: cargo notifications: email: on_success: never rust: # Version 1.36 is the minimum version of rust supported by Gecko. - 1.36.0 - stable - nightly env: # default jobs with and without optional features. - - FEATURES=pulse-dlopen # Invoke cargo with optional target or features switches. script: > cargo test ${TARGET:+--target ${TARGET}} ${FEATURES:+--features ${FEATURES}} # Install cross target if necessary. before_install: if test -n "${TARGET}"; then rustup target add ${TARGET}; fi addons: &apt_64 apt: packages: - libpulse-dev matrix: include: # Add in 32-bit builds - rust: 1.36.0 env: - TARGET=i686-unknown-linux-gnu addons: &apt_32 apt: packages: - gcc-multilib - g++-multilib - libpulse-dev:i386 - libglib2.0-dev:i386 - rust: 1.36.0 env: - TARGET=i686-unknown-linux-gnu - FEATURES=pulse-dlopen addons: *apt_32 - rust: stable env: - TARGET=i686-unknown-linux-gnu addons: *apt_32 - rust: stable env: - TARGET=i686-unknown-linux-gnu - FEATURES=pulse-dlopen addons: *apt_32 - rust: nightly env: - TARGET=i686-unknown-linux-gnu addons: *apt_32 - rust: nightly env: - TARGET=i686-unknown-linux-gnu - FEATURES=pulse-dlopen addons: *apt_32 allow_failures: - rust: nightly