Change setup to use travis matrix and dedicated ci script

This commit is contained in:
Matthias Beyer 2018-04-12 00:22:50 +02:00
parent c27dc79afe
commit 660b3b3dcf
2 changed files with 39 additions and 13 deletions

View file

@ -7,13 +7,30 @@ dist:
language: rust language: rust
rust: matrix:
- 1.23.0 include:
- 1.24.0 - language: rust
- stable rust: 1.23.0
cache: cache:
cargo: true cargo: true
script:
- cargo build --all --all-features -j 1 || exit 1
- cargo test --all --all-features -j 1 || exit 1
- language: rust
rust: 1.24.0
cache:
cargo: true
script:
- cargo build --all --all-features -j 1 || exit 1
- cargo test --all --all-features -j 1 || exit 1
- language: rust
rust: stable
cache:
cargo: true
script:
- cargo build --all --all-features -j 1 || exit 1
- cargo test --all --all-features -j 1 || exit 1
addons: addons:
apt: apt:
@ -21,13 +38,6 @@ addons:
- libdbus-1-dev - libdbus-1-dev
- pkg-config - pkg-config
script:
- |
bash ./scripts/find-dead-symlinks || exit 1
bash ./scripts/license-headers-updated || exit 1
cargo build --all --all-features -j 1 || exit 1
cargo test --all --all-features -j 1 || exit 1
notifications: notifications:
email: email:
on_success: never on_success: never

16
scripts/mkdocset Normal file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
# execute from repository root
CARGO=$(which cargo || exit 1)
RSDOCSDASHING=$(which rsdocs-dashing || exit 1)
DASHING=$(which dashing || exit 1)
$CARGO doc --all || exit 1
ls target/doc | grep imag | while read pkg; do
$RSDOCSDASHING target/doc/$pkg docset-$pkg
$DASHING build --config docset-$pkg/dashing.json --source docset-$pkg/build
done