Skip to content

Commit

Permalink
works offline
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 12, 2023
1 parent 43f0b64 commit 8472bac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions steps/discover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,18 @@ elif [ -n "${REPO}" ]; then
echo -e "repo,\n${REPO}," > "${csv}"
elif [ -z "${REPOS}" ] || [ ! -e "${REPOS}" ]; then
echo "Using discover-repos.rb..."
ruby "${LOCAL}/steps/discover-repos.rb" \
declare -a args=( \
"--token=${TOKEN}" \
"--total=${TOTAL}" \
"--csv=${csv}" \
"--tex=${TARGET}/temp/repo-details.tex" \
"--min-stars=400" \
"--max-stars=10000"
"--max-stars=10000" \
)
if [ -n "${CAMTESTS}" ]; then
args+=('--dry' '--pause=0')
fi
ruby "${LOCAL}/steps/discover-repos.rb" "${args[@]}"
else
echo "Using the list of repositories from the '${REPOS}' file (defined by the REPOS environment variable)..."
cat "${REPOS}" > "${csv}"
Expand Down
2 changes: 2 additions & 0 deletions steps/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ set -o pipefail
temp=${LOCAL}/test-zone
mkdir -p "${temp}"

export CAMTESTS=1

find "${LOCAL}/tests" -name '*.sh' | sort | while IFS= read -r test; do
name=$(realpath --relative-to="${LOCAL}/tests" "${test}")
if [ -n "${TEST}" ] && [ ! "${TEST}" = "${name}" ]; then
Expand Down

0 comments on commit 8472bac

Please sign in to comment.