Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dff6773

Browse files
committed
orca-build-verify.sh accepts mock's name as command line argument
1 parent 18ba1a3 commit dff6773

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.circleci/orca-build-verify.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,17 @@ else
3131
CIRCLE_NODE_INDEX=0
3232
fi
3333

34-
ls $MOCKS/*.json | deterministic_shuffle > /tmp/all
34+
if [[ $# -eq 0 ]]; then
35+
echo "No arguments provided"
36+
FIGURE=$(ls $MOCKS/*.json)
37+
else
38+
for var in "$@"
39+
do
40+
FIGURE="$FIGURE $MOCKS/$var.json "
41+
done
42+
fi
43+
44+
echo $FIGURE | tr " " "\n" | deterministic_shuffle > /tmp/all
3545
split -d -a3 -n l/$CIRCLE_NODE_TOTAL /tmp/all /tmp/queue
3646

3747
NODE_QUEUE="/tmp/queue$(printf "%03d" $CIRCLE_NODE_INDEX)"

.circleci/retry-orca-build-verify.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,6 @@ function retry(cmd, args, trials) {
3636
})
3737
}
3838

39-
retry('.circleci/orca-build-verify.sh',[], 5)
39+
var args = process.argv
40+
args.splice(0,2);
41+
retry('.circleci/orca-build-verify.sh', args, 5)

0 commit comments

Comments
 (0)