Skip to content
Snippets Groups Projects

Add initial version of ci-flatdeb-builder

Merged Ryan Gonzalez requested to merge wip/refi64/ci-flatdeb-builder into main
All threads resolved!
.gitlab-ci.yml 0 → 100644
+ 60
0
variables:
RUNTIMES_TEST_PROJECT: tests/ci-flatdeb-builder-runtimes
APPS_TEST_PROJECT: tests/ci-flatdeb-builder-apps
REMOTE_URL: https://images.apertis.org/test/ci-flatdeb-builder-$CI_COMMIT_REF_SLUG
UPLOAD_ROOT: /srv/images/test/ci-flatdeb-builder-$CI_COMMIT_REF_SLUG
CI_CONFIG_REPO_USE_AUTHENTICATION: 'no'
stages:
- check
- basic-tests
- pipeline-tests
default:
image: debian:bullseye
tags:
- lightweight
before_script:
- apt-get update
# PyGObject wants pycairo.
- apt-get install -y git python3-pip python3-cairo python3-gi
- python3 -m pip install -r requirements-dev.txt
lint:
stage: check
script:
- isort --check --diff *.py tests/*.py
- black --check -S *.py tests/*.py
- mypy *.py tests/*.py
basic-tests:
stage: basic-tests
script:
- pytest -m 'not gitlab'
pipeline-tests:
stage: pipeline-tests
parallel:
matrix:
- REPO: [runtimes, apps]
BRANCH: [main, test]
resource_group: pipeline-$REPO-$BRANCH
timeout: 2h
script:
- |
if [ "$CI_CONFIG_REPO_USE_AUTHENTICATION" == yes ]; then
AUTH_ARGS=--ci-config-repo-use-authentication
fi
- >
pytest
-m "gitlab and gitlab_repo_$REPO and gitlab_branch_$BRANCH"
--pipeline-id trigger
--gitlab-instance-url "$CI_SERVER_URL"
--gitlab-instance-token "$GITLAB_INSTANCE_TOKEN"
--runtimes-test-project "$RUNTIMES_TEST_PROJECT"
--apps-test-project "$APPS_TEST_PROJECT"
--ci-config-repo-url "$CI_PROJECT_URL"
--ci-config-repo-revision "$CI_COMMIT_SHA"
--remote-url "$REMOTE_URL"
--upload-root "$UPLOAD_ROOT"
$AUTH_ARGS
Loading