Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions ci/test-downstream.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/usr/bin/env bash
# Test selected downstream crates

set -e

root=$(pwd)
echo $root
folder="../mdbook-downstream"
projects=(
"https://github.com/tommilligan/mdbook-admonish"
"https://github.com/lambdalisue/rs-mdbook-alerts"
)


mkdir -p $folder

for project in ${projects[*]}
do
echo "project: $project"
name=$(basename $project)
cd "$root/$folder"
echo $name
if [ ! -d $name ]; then
git clone $project
fi

cd $name
git pull
cargo add mdbook --path $root
cargo test
git checkout .

done