Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.14 KiB
Newer Older
image: gitlab.liu.se:5000/starcraft-ai-course/pycommandcenter  

stages:
    - compile
    - deploy

compile:
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
  stage: compile
Daniel de Leng's avatar
Daniel de Leng committed
    - echo $(nproc)
    - mkdir build
    - cd build
    - cmake ..
Daniel de Leng's avatar
Daniel de Leng committed
    - make commandcenter -j $(nproc)
  artifacts:
    paths:
      - docs
      - build
Daniel de Leng's avatar
Daniel de Leng committed
      - scripts/generate_pydocs.py
    expire_in: 10 minutes
  only:
    - master
    - python12_update
  variables:
    GIT_STRATEGY: none
    GIT_CHECKOUT: false
  stage: deploy
  script:
    - cd docs
Edvin Bergström's avatar
Edvin Bergström committed
    - python3 library_import_check.py
David Bergström's avatar
David Bergström committed
    - mkdir public
David Bergström's avatar
David Bergström committed
    - cp -r docs/_build/html/* public
  artifacts:
    paths:
      - public
  only:
    - master
    - python12_update

pack-linux:
  variables:
    GIT_STRATEGY: none
    GIT_CHECKOUT: false
  stage: deploy
  script:
    - cd build/python-api-src
    - stubgen -m commandcenter -o .
Daniel de Leng's avatar
Daniel de Leng committed
    - python3 scripts/generate_pydocs.py
      - build/python-api-src/commandcenter.cpython-312-x86_64-linux-gnu.so
      - build/python-api-src/commandcenter.pyi
Daniel de Leng's avatar
Daniel de Leng committed
    - python12_update