Skip to content

Commit

Permalink
[services/travis] HTML improvements.
Browse files Browse the repository at this point in the history
Also rename shell functions.
  • Loading branch information
Andy Chu committed Mar 14, 2020
1 parent 5db7b30 commit 6565719
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 3 additions & 3 deletions services/toil-worker.sh
Expand Up @@ -11,7 +11,7 @@ set -o errexit

source test/common.sh

dev-tasks() {
dev-minimal-tasks() {
### Print tasks for the dev build

# (name, script)
Expand All @@ -29,7 +29,7 @@ time-tsv() {
benchmarks/time_.py --tsv "$@"
}

run-dev-tasks() {
run-dev-minimal() {
local out_dir=_tmp/toil
mkdir -p $out_dir

Expand All @@ -38,7 +38,7 @@ run-dev-tasks() {
rm -f $tsv

#export TRAVIS_SKIP=1
dev-tasks | while read task_name script; do
dev-minimal-tasks | while read task_name script; do
log "--- task: $task_name ---"

local log=$out_dir/$task_name.log.txt
Expand Down
11 changes: 9 additions & 2 deletions services/travis.sh
Expand Up @@ -293,8 +293,15 @@ EOF
local job_id=$(basename $wwz .wwz)
echo '<tr>'
echo " <td><a href="$wwz/">$wwz</a></td>"
echo " <td><a href="$job_id.json">JSON</a></td>"
echo " <td><a href="$job_id.tsv">TSV</a></td>"
if [[ $job_id == *test ]]; then
# don't show misleading links
echo " <td>-</td>"
echo " <td>-</td>"
else
echo " <td><a href="$job_id.json">JSON</a></td>"
echo " <td><a href="$job_id.tsv">TSV</a></td>"
fi

echo '</tr>'
done

Expand Down

0 comments on commit 6565719

Please sign in to comment.