diff --git a/.woodpecker/ci.yaml b/.woodpecker/ci.yaml new file mode 100644 index 00000000..89618e38 --- /dev/null +++ b/.woodpecker/ci.yaml @@ -0,0 +1,46 @@ +when: + - event: push + - event: pull_request + - event: cron + cron: ci + +steps: + - name: parallel-prepare + image: codeberg.org/3ra/ballistica-dev:latest + pull: true + commands: + - make env + - cd .. + - cp -r -v $CI_REPO_NAME check_linux + - cp -r -v $CI_REPO_NAME build_and_test_linux + - cp -r -v $CI_REPO_NAME spinoff_test_linux + - cp -r -v $CI_REPO_NAME feature_set_copy_test_linux + - name: check-linux + image: codeberg.org/3ra/ballistica-dev:latest + commands: + - cd check_linux + - BA_PCOMMANDBATCH_BUILD_REQUIRE=1 make check + depends_on: [parallel-prepare] + - name: build-and-test-linux + image: codeberg.org/3ra/ballistica-dev:latest + commands: + - cd build_and_test_linux + - make cmake-server-build + - BA_PCOMMANDBATCH_BUILD_REQUIRE=1 BA_APP_RUN_ENABLE_BUILDS=1 BA_APP_RUN_BUILD_HEADLESS=1 make test + depends_on: [parallel-prepare] + - name: spinoff-test-linux + image: codeberg.org/3ra/ballistica-dev:latest + commands: + - cd spinoff_test_linux + - make spinoff-test-core + - make spinoff-test-base + depends_on: [parallel-prepare] + - name: feature-set-copy-test-linux + image: codeberg.org/3ra/ballistica-dev:latest + commands: + - cd feature_set_copy_test_linux + - tools/spinoff fset-copy template_fs poo + - make update + - make cmake-modular-server-build + - cd build/cmake/modular-server-debug/staged/dist && PYTHONPATH=ba_data/python ./ballisticakit_headless -c "import baenv; baenv.configure(); import bapoo; print(bapoo)" + depends_on: [parallel-prepare] diff --git a/.woodpecker/release.yaml b/.woodpecker/release.yaml index 270e838c..aee418a5 100644 --- a/.woodpecker/release.yaml +++ b/.woodpecker/release.yaml @@ -36,8 +36,8 @@ steps: - cd build/prefab/full/windows_x86_server - zip -rv ../../../../ballisticakit_windows_server.zip ballisticakit_windows_server - cd ../../../.. - - mv -v build/sphinx build/ballisticakit_sphinx - - tar -cvfC ballisticakit_sphinx_docs.tar build ballisticakit_sphinx + - mv -v build/sphinx build/ballisticakit_sphinx_docs + - tar -cvfC ballisticakit_sphinx_docs.tar build/ ballisticakit_sphinx_docs - name: build-gui-docker image: woodpeckerci/plugin-docker-buildx settings: diff --git a/.woodpecker/ci_build_and_test_linux.yaml b/.woodpecker/wip/ci_build_and_test_linux.yaml similarity index 100% rename from .woodpecker/ci_build_and_test_linux.yaml rename to .woodpecker/wip/ci_build_and_test_linux.yaml diff --git a/.woodpecker/ci_check_linux.yaml b/.woodpecker/wip/ci_check_linux.yaml similarity index 100% rename from .woodpecker/ci_check_linux.yaml rename to .woodpecker/wip/ci_check_linux.yaml diff --git a/.woodpecker/ci_feature_set_copy_test_linux.yaml b/.woodpecker/wip/ci_feature_set_copy_test_linux.yaml similarity index 100% rename from .woodpecker/ci_feature_set_copy_test_linux.yaml rename to .woodpecker/wip/ci_feature_set_copy_test_linux.yaml diff --git a/.woodpecker/ci_spinoff_test_linux.yaml b/.woodpecker/wip/ci_spinoff_test_linux.yaml similarity index 100% rename from .woodpecker/ci_spinoff_test_linux.yaml rename to .woodpecker/wip/ci_spinoff_test_linux.yaml diff --git a/config/spinoffconfig.py b/config/spinoffconfig.py index 995082f3..d7f7ea75 100644 --- a/config/spinoffconfig.py +++ b/config/spinoffconfig.py @@ -200,6 +200,7 @@ ctx.filter_file_names = { 'release.yml', 'ballistica_dev_dockerfile', 'ballistica_dev_image.yaml', + 'ci.yaml', 'ci_check_linux.yaml', 'ci_build_and_test_linux.yaml', 'ci_spinoff_test_linux.yaml',