Writing a zsh script to test a Julia project

mmv
Fri, 31 Mar 2023 14:28:45 +0000
New to Julia

Hi!

I’d like to write a zsh script to automate the testing of a Julia project by

launching Julia

starting the Pkg environment

executing the following three commands:

activate .

add Test

test [project_name]

exiting the Pkg environment

exiting Julia and return to the shell

If that is feasible, what would be the syntax for achieving this, beyond the usual

#!/bin/zsh
cd [path/to/the/project]
julia --project=[project-name]

Can I add arguments to that last line, or do I need to write a separate file? Ideally, this script would simply be called as test_[project-name]…

Thanks for suggestions.

3 posts - 2 participants