feat(.drone.yml,-submit_scoreboard.sh): moving commands to a submit_scoreboard.sh
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
33de1178ac
commit
bc6222307f
|
@ -28,13 +28,7 @@ steps:
|
|||
- make test
|
||||
- name: scoreboard
|
||||
commands:
|
||||
- 'export ORIG_HOME=$(grep ^${USER}: /etc/passwd |cut -d : -f 6)'
|
||||
- PATH=$PATH:$ORIG_HOME/.local/bin
|
||||
- if echo "${DRONE_REPO_NAME}" | grep -q '-'; then SUBMITTER_NAME=$(echo "{DRONE_REPO_NAME}" | cut -d'-' -f1); else SUBMITTER_NAME={DRONE_REPO_NAME};
|
||||
fi
|
||||
- mkdir repo
|
||||
- cp $ORIG_HOME/.config/ci/teapot.env .env && joint-teapot JOJ3-scoreboard "score.json" $SUBMITTER_NAME "" "JOJ3-examples" "JOJ3_dev.csv"
|
||||
- cat joint-teapot.log
|
||||
- bash scripts/submit_scoreboard.sh
|
||||
- name: store
|
||||
commands:
|
||||
- cp build/joj3 /home/drone/.local/bin/joj3
|
||||
|
|
13
scripts/submit_scoreboard.sh
Normal file
13
scripts/submit_scoreboard.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
export ORIG_HOME=$(grep ^${USER}: /etc/passwd |cut -d : -f 6)
|
||||
PATH=$PATH:$ORIG_HOME/.local/bin
|
||||
|
||||
if echo "${DRONE_REPO_NAME}" | grep -q '-'; then
|
||||
SUBMITTER_NAME=$(echo "{DRONE_REPO_NAME}" | cut -d'-' -f1);
|
||||
else
|
||||
SUBMITTER_NAME={DRONE_REPO_NAME};
|
||||
fi
|
||||
|
||||
mkdir repo
|
||||
cp $ORIG_HOME/.config/ci/teapot.env .env && joint-teapot JOJ3-scoreboard "score.json" $SUBMITTER_NAME "" "JOJ3-examples" "JOJ3_dev.csv"
|
||||
cat joint-teapot.log
|
Loading…
Reference in New Issue
Block a user