Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.18 KiB
Newer Older
Bentriou Mahmoud's avatar
Bentriou Mahmoud committed
    # stages:
    #  - build-and-test
    #  - deploy
Bentriou Mahmoud's avatar
Bentriou Mahmoud committed
    #test:latest:
    #  stage: build-and-test
    #  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")'
    #  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
Bentriou Mahmoud's avatar
Bentriou Mahmoud committed
    - echo $CI_COMMIT_BRANCH
    - export PYTHON="" 
      # The Pkg.develop() makes MarkovProcesses.jl available in julia
    - julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=".")); Pkg.instantiate();'
      # To avoid PyImport error with sklearn
    - julia --project=docs/ -e 'using Pkg; Pkg.add("Conda"); using Conda; Conda.add("scikit-learn")'
    - julia --project=docs/ --color=yes docs/make.jl  # make documentation
    - mv docs/build public
    - ls
    - ls public
  artifacts:
    paths:
Bentriou Mahmoud's avatar
Bentriou Mahmoud committed
      - public
#  rules:
#    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
  tags:
    - docker
Bentriou Mahmoud's avatar
Bentriou Mahmoud committed
#   only:
#     - ci_tests
#