Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes? #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
22 changes: 14 additions & 8 deletions monitor.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
#!/bin/bash

: ${PLANEMO_TARGET:="planemo==0.74.1"}

if [ ! -f .venv ]; then
python -m venv .venv
. .venv/bin/activate
pip install -U pip
pip install PyGithub
git clone --recursive https://github.com/galaxyproject/planemo && pip install planemo/
# pip install "$PLANEMO_TARGET"
fi

planemo conda_init

sort -R $1 | while read repository
exit_code="0"
sort -R "$1" | while read repository
do
repo_dir=$(basename "$repository")
git clone --depth=1 "$repository" "$repo_dir"
planemo container_register --force_push --recursive "$repo_dir"
rm -rf "$repo_dir"
repo_dir=$(basename "$repository")
git clone --depth=1 "$repository" "$repo_dir"
cd "$repo_dir"
planemo ci_find_repos --exclude packages --exclude deprecated --exclude_from .tt_skip --output repository_list.txt
while read tool_dir
do
planemo container_register --force_push --recursive "$tool_dir"
exit_code=$(( "$exit_code" | "$?" ))
done < repository_list.txt
cd -
rm -rf "$repo_dir"
done

exit $exit_code