From 660b3b3dcfec6646e6c663e3166c1c305a853cdd Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 12 Apr 2018 00:22:50 +0200 Subject: [PATCH] Change setup to use travis matrix and dedicated ci script --- .travis.yml | 36 +++++++++++++++++++++++------------- scripts/mkdocset | 16 ++++++++++++++++ 2 files changed, 39 insertions(+), 13 deletions(-) create mode 100644 scripts/mkdocset diff --git a/.travis.yml b/.travis.yml index 9dbfe469..1d622f67 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,13 +7,30 @@ dist: language: rust -rust: - - 1.23.0 - - 1.24.0 - - stable +matrix: + include: + - language: rust + rust: 1.23.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: 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 -cache: - cargo: true addons: apt: @@ -21,13 +38,6 @@ addons: - libdbus-1-dev - 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: email: on_success: never diff --git a/scripts/mkdocset b/scripts/mkdocset new file mode 100644 index 00000000..c1e9fc34 --- /dev/null +++ b/scripts/mkdocset @@ -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 + +