-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from JuliaCI/sf/run_tests
Allow overriding testing command
- Loading branch information
Showing
3 changed files
with
51 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
#!/bin/bash | ||
source $(dirname ${BASH_SOURCE})/common | ||
|
||
echo "+++ :julia: Running tests" | ||
julia ${bugreport_args} --project=${project} -e " | ||
using Pkg | ||
# Use default julia test running harness | ||
if [[ "${run_tests}" == "true" ]]; then | ||
echo "+++ :julia: Running tests" | ||
julia ${bugreport_args} --project=${project} -e " | ||
using Pkg | ||
# We never update the registry when running tests, we assume if you wanted this done, you'd do it in the pre-command | ||
Pkg.UPDATED_REGISTRY_THIS_SESSION[] = true | ||
# We never update the registry when running tests, we assume if you wanted this done, you'd do it in the pre-command | ||
Pkg.UPDATED_REGISTRY_THIS_SESSION[] = true | ||
# In the event that you might need to fetch test-only dependencies that are private, | ||
# we set Pkg to use SSH for cloning non-PkgServer-served packages here as well | ||
${USE_SSH_BLOCK} | ||
# In the event that you might need to fetch test-only dependencies that are private, | ||
# we set Pkg to use SSH for cloning non-PkgServer-served packages here as well | ||
${USE_SSH_BLOCK} | ||
Pkg.test(; coverage=$coverage, | ||
julia_args=\`$julia_args\`, | ||
test_args=\`$test_args\`) | ||
" | ||
Pkg.test(; coverage=$coverage, | ||
julia_args=\`$julia_args\`, | ||
test_args=\`$test_args\`) | ||
" | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters