From e8b345b6d0d4254705e4685af266f4a99e9d0a2a Mon Sep 17 00:00:00 2001 From: Daniel de Leng <dnleng@protonmail.com> Date: Tue, 2 Jul 2024 21:27:26 +0200 Subject: [PATCH] Test separate stages in CI --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a891d7fac..9655c81df 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,20 +1,42 @@ variables: GIT_SUBMODULE_STRATEGY: recursive -pages: - image: gitlab.liu.se:5000/starcraft-ai-course/pycommandcenter - stage: deploy +image: gitlab.liu.se:5000/starcraft-ai-course/pycommandcenter + +stages: + - compile + - deploy + +compile: + stage: compile script: - mkdir build - cd build - cmake .. - make library + only: + - master + - python12_update + +pages: + stage: deploy + script: - cd ../docs - python3 library_import_check.py - make html - cd .. - mkdir public - cp -r docs/_build/html/* public + artifacts: + paths: + - public + only: + - master + - python12_update + +pack-linux: + stage: deploy + script: - cd build/python-api-src - stubgen -m library -o . - cd ../.. @@ -24,7 +46,6 @@ pages: - cp build/python-api-src/library.pyi artifacts artifacts: paths: - - public - artifacts only: - master -- GitLab