Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
.gitlab-ci.yml 726 B
Newer Older
Karine Bauch's avatar
Karine Bauch committed
include:
    -   remote: https://gitlab.com/swepy/cicd-templates/release-by-changelog/-/raw/0.4.6/templates/release-by-changelog.yml
Karine Bauch's avatar
Karine Bauch committed
    -   project: swepy/cicd-templates/pytest
        ref: $CI_COMMIT_REF_NAME
        file: templates/pytest.yml
Karine Bauch's avatar
Karine Bauch committed
        inputs:
            project_path: tests/passing_test
Karine Bauch's avatar
Karine Bauch committed

"failing_pytest":
Karine Bauch's avatar
Karine Bauch committed
    extends: pytest
Karine Bauch's avatar
Karine Bauch committed
    variables:
        PROJECT_PATH: tests/failing_test
Karine Bauch's avatar
Karine Bauch committed
    script:
        - >
            pytest tests/failing_test > /dev/null 2>&1 || EXIT_CODE=$?;
            if [ $EXIT_CODE -eq 1 ]; then
                echo "Pytest found failing test as it should"
            else
                echo "Pytest did not find failing test as it should"
                exit 1