2017-02-22 13:08:53 +00:00
|
|
|
language: rust
|
|
|
|
|
2017-02-22 15:42:56 +00:00
|
|
|
cache: cargo
|
|
|
|
|
2017-09-21 17:53:56 +00:00
|
|
|
sudo: required
|
2017-02-22 15:42:56 +00:00
|
|
|
|
2017-02-22 13:08:53 +00:00
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
- beta
|
|
|
|
- nightly
|
|
|
|
|
2017-03-20 15:19:50 +00:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
|
|
|
|
2017-02-22 13:08:53 +00:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
2017-02-22 13:23:20 +00:00
|
|
|
dist: trusty
|
|
|
|
|
2017-02-22 15:42:56 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2017-09-21 17:53:56 +00:00
|
|
|
- libssl-dev
|
2017-04-26 17:48:15 +00:00
|
|
|
- libudev-dev
|
2017-09-21 17:53:56 +00:00
|
|
|
- libgbm-dev
|
|
|
|
- libxkbcommon-dev
|
|
|
|
- libegl1-mesa-dev
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- sudo add-apt-repository -y ppa:wayland.admin/daily-builds
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
- sudo apt-get install -y libwayland-dev libinput-dev
|
2017-02-22 13:08:53 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
|
|
|
before_script:
|
2017-03-13 17:12:14 +00:00
|
|
|
- export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$PATH
|
2017-09-05 17:50:41 +00:00
|
|
|
- pip install 'travis-cargo<0.2' --user
|
2017-09-22 16:56:31 +00:00
|
|
|
- which rustfmt || travis-cargo --only nightly install rustfmt-nightly -- --force
|
2017-03-20 14:43:57 +00:00
|
|
|
- which cargo-install-update || cargo install cargo-update
|
|
|
|
- cargo install-update -a
|
2017-03-11 08:06:25 +00:00
|
|
|
- mkdir $(pwd)/socket
|
|
|
|
- export XDG_RUNTIME_DIR="$(pwd)/socket"
|
2017-02-22 13:08:53 +00:00
|
|
|
|
|
|
|
script:
|
2017-09-21 17:53:56 +00:00
|
|
|
- travis-cargo -q --only nightly fmt -- -- --write-mode=diff
|
|
|
|
- travis-cargo -q --skip nightly test
|
|
|
|
- travis-cargo -q --only nightly test -- --features "clippy"
|
|
|
|
- travis-cargo -q --only stable doc -- --no-deps
|
2017-02-22 13:08:53 +00:00
|
|
|
|
|
|
|
after_success:
|
2017-09-21 17:53:56 +00:00
|
|
|
- travis-cargo -q --only stable doc-upload
|
2017-02-22 13:08:53 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# override the default `--features unstable` used for the nightly branch (optional)
|
|
|
|
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
|
2017-02-22 13:31:36 +00:00
|
|
|
- RUST_BACKTRACE=1
|
2017-02-22 16:04:21 +00:00
|
|
|
- secure: lJjdHvIm6Pzimdik+SafO/MOWLLGY5TJdI7hWcwQ4+XNjuwncKx9ZJ8zqr2xClUKSALvUWB+vdu7i9wTWtsOYnDpyy8wuRvBZoaD5c8H2igsnzmGPPtP5KlPi5sEYvcCRY4vf9GDrvZm6tkNwMRsJBJ+2W/dSOTudMQA9mkdQcn5x24HVUBBOKEEuNy5ZOHZIj/+tre3USC8PbVvWyC5HHHjjEMBKR3F/BoaR1BJq2u4BdyDGTkfsoUa1zaTjApcZiEEK9KhoWDentkmlJHJCHKxC/zIZGhNx8ukw2yrms6j1k94jXB3rJP97q8UyNFcCO1HVO46EdLB6sFUPAW0CuDM27xIHDv+FyU3ICZVlpKQIK8YPJuLmQbCJFpVvEgfNfCIm+7+4jDci09FmHhuW+wQrTZDsRbCQz2gtVveeoE9/cZy5qAbI+UW4F25GGg9Ycxn+VOBU6Zdg8T9MLRRbHJXCzjMmJrNwK+6fEnCsMoVxwbRF9Fsh2JXS0PFdQgJSGtYYW31HEUEu4zrUuooJtz4CAgR+vB9oBxHfu6Y9GXZFmTsrUyuvGSl5vFB3AXLK6AP3BeXu3Bq2wQDy7ClQxvxkpN/eCKKxwV9vE9nRY0eD1sc6esv2gTjlV+gqs7V7JL8VvZulzZZ2gk6S/GhImCqyhJTqziKR7RXsPRZ2Zw=
|
2017-02-22 13:08:53 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
webhooks:
|
|
|
|
urls:
|
|
|
|
- "https://scalar.vector.im/api/neb/services/hooks/dHJhdmlzLWNpLyU0MGxldmFucyUzQXNhZmFyYWRlZy5uZXQvJTIxRkt4aGprSUNwakJWelZlQ2RGJTNBc2FmYXJhZGVnLm5ldA"
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
|
|
|
on_start: never
|