Skip to content

Commit

Permalink
Run user-provided commands before testing. (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt authored Jun 21, 2022
1 parent 0805a19 commit 55bfa81
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions hooks/command
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/usr/bin/env bash
source $(dirname ${BASH_SOURCE})/common

# If there is a `commands` block specified in the YAML, run that as well
if [[ -n "${BUILDKITE_COMMAND}" ]]; then
echo "+++ Running yaml-provided user commands"
eval "${BUILDKITE_COMMAND}"
fi

# Use default julia test running harness
if [[ "${run_tests}" == "true" ]]; then
echo "+++ :julia: Running tests"
Expand All @@ -25,12 +31,6 @@ if [[ "${run_tests}" == "true" ]]; then
"
fi

# If there is a `commands` block specified in the YAML, run that as well
if [[ -n "${BUILDKITE_COMMAND}" ]]; then
echo "+++ Running yaml-provided user commands"
eval "${BUILDKITE_COMMAND}"
fi

# Restore the original Manifest
if [ -n "$custom_manifest" ]; then
rm Manifest.toml
Expand Down

0 comments on commit 55bfa81

Please sign in to comment.