ci update, run build checks on master
This commit is contained in:
10
ci/script.sh
10
ci/script.sh
@@ -7,15 +7,16 @@ main() {
|
|||||||
linkchecker book
|
linkchecker book
|
||||||
|
|
||||||
# first (fast) pass: check that examples compile
|
# first (fast) pass: check that examples compile
|
||||||
|
if [ $TRAVIS_BRANCH = master ]; then
|
||||||
for chapter in $(echo src/*); do
|
for chapter in $(echo src/*); do
|
||||||
if [ ! -f $chapter/Cargo.toml ]; then
|
if [ ! -f $chapter/Cargo.toml ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pushd $chapter
|
pushd $chapter
|
||||||
cargo check
|
cargo check
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
# second (slow) pass: check that examples link
|
# second (slow) pass: check that examples link
|
||||||
# for chapter in $(echo src/*); do
|
# for chapter in $(echo src/*); do
|
||||||
@@ -34,6 +35,7 @@ main() {
|
|||||||
cargo build --release
|
cargo build --release
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $TRAVIS_BRANCH != master ]; then
|
# if [ $TRAVIS_BRANCH != master ]; then
|
||||||
main
|
# main
|
||||||
fi
|
# fi
|
||||||
|
main
|
||||||
|
|||||||
Reference in New Issue
Block a user