Skip to content
Snippets Groups Projects
.gitlab-ci.yml 834 B
Newer Older
stages:
  - deploy

Bentriou Mahmoud's avatar
Bentriou Mahmoud committed
test:latest:
  stage: build-and-test
Bentriou Mahmoud's avatar
Bentriou Mahmoud committed
  image: gitlab-research.centralesupelec.fr:4567/2017bentrioum/markovprocesses.jl/julia:latest
  script:
    - julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=".")); Pkg.instantiate(); Pkg.test("MarkovProcesses")'
Bentriou Mahmoud's avatar
Bentriou Mahmoud committed
  tags:
    - docker

pages:
  stage: deploy
  image: gitlab-research.centralesupelec.fr:4567/2017bentrioum/markovprocesses.jl/julia:latest
  script:
    - apt-get update -qq && apt-get install -y git
    - julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=".")); Pkg.instantiate();'
    - julia --project=docs/ --color=yes docs/make.jl  # make documentation
    - mv docs/build latest
  artifacts:
    paths:
      - latest
#  rules:
#    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH