39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
|
|
# Use the acc-py-devtools templates found at
|
|
# https://gitlab.cern.ch/-/ide/project/acc-co/devops/python/acc-py-devtools/blob/master/-/acc_py_devtools/templates/gitlab-ci/python.yml.
|
|
include:
|
|
- project: acc-co/devops/python/acc-py-devtools
|
|
file: acc_py_devtools/templates/gitlab-ci/python.yml
|
|
|
|
variables:
|
|
project_name: cara
|
|
|
|
|
|
# A full installation of CARA, tested with pytest.
|
|
test_install:
|
|
extends: .acc_py_full_test
|
|
|
|
|
|
# A development installation of CARA tested with pytest.
|
|
test_dev:
|
|
extends: .acc_py_dev_test
|
|
|
|
|
|
trigger_build_on_openshift:
|
|
stage: deploy
|
|
rules:
|
|
- if: '$OPENSHIFT_BUILD_WEBHOOK_SECRET'
|
|
script:
|
|
- curl -X POST -k https://openshift.cern.ch:443/apis/build.openshift.io/v1/namespaces/cara/buildconfigs/cara-app/webhooks/${OPENSHIFT_BUILD_WEBHOOK_SECRET}/generic
|
|
|
|
|
|
deploy_to_test:
|
|
stage: deploy
|
|
rules:
|
|
- if: '$CI_MERGE_REQUEST_EVENT_TYPE == "detached"'
|
|
when: never
|
|
- if: '$OPENSHIFT_TEST_BUILD_WEBHOOK_SECRET'
|
|
when: manual
|
|
allow_failure: true
|
|
script:
|
|
- curl -X POST -k https://openshift-dev.cern.ch:443/apis/build.openshift.io/v1/namespaces/test-cara/buildconfigs/test-cara/webhooks/${OPENSHIFT_TEST_BUILD_WEBHOOK_SECRET}/generic
|