JuliaTeachingCTU / Scientific-Programming-in-Julia

Repository for B0M36SPJ
https://juliateachingctu.github.io/Scientific-Programming-in-Julia/dev/
MIT License
78 stars 15 forks source link

Add note on unit testing on GitLab to lab4 #37

Open janfrancu opened 2 years ago

janfrancu commented 2 years ago

Unit test can be setup also on GitLab, see tutorial from Tamás K. Papp. It boils down to adding a file .gitlab-ci.yml to the root of a repo with the following few lines

image: julia:1.6                # image comes from Docker hub

default:
  script:
    - julia --project=@. -e "import Pkg; Pkg.test()"

Documentation can be hosted in a similar fashion as well.