.gitlab-ci.yml 740 Bytes
Newer Older
ollyl's avatar
ollyl committed
1
image: julia:1.6                # image comes from Docker hub
2

ollyl's avatar
ollyl committed
3
before_script:
ollyl's avatar
ollyl committed
4 5
  - apt-get -qq update; apt-get -y install git hdf5-tools
  - julia --project=@. -e "import Pkg; Pkg.build()"
ollyl's avatar
ollyl committed
6

7
default:
ollyl's avatar
ollyl committed
8
  script:
ollyl's avatar
ollyl committed
9 10 11 12
    - julia --project=@. -e "import Pkg; Pkg.test(; coverage = true)"
    - julia --project=test/coverage -e 'import Pkg; Pkg.instantiate()'
    - julia --project=test/coverage test/coverage/coverage-summary.jl

ollyl's avatar
ollyl committed
13 14 15 16 17 18 19 20 21 22 23 24

pages:
  stage: deploy
  script:
    - julia --project=docs -e 'using Pkg; Pkg.instantiate(); Pkg.develop(PackageSpec(path=pwd()))'
    - julia --project=docs --color=yes docs/make.jl
    - mv docs/build public # move to the directory picked up by Gitlab pages
  artifacts:
    paths:
      - public
  only:
  - master