ci update, run build checks on master

This commit is contained in:
Michael Droogleever
2018-07-29 20:10:30 +02:00
parent 1493583bf0
commit e5e1162c43

View File

@@ -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
# fi
main main
fi