|
1 |
| -check-php-version: |
2 |
| - extends: .abstract_jobs.copy_source |
3 |
| - stage: test |
4 |
| - variables: |
5 |
| - ARG_IMAGE: test-source |
6 |
| - needs: |
7 |
| - - docker_build_source |
8 |
| - script: |
9 |
| - - echo "PHP version shoud be ${PHP_VERSION}." |
10 |
| - - php -r "echo 'PHP version is'.PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;" |
11 |
| - - php -r "if (version_compare(PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION, '${PHP_VERSION}', '!=')) exit(1);" |
12 |
| - rules: |
13 |
| - - if: $RUN_NO_TESTS == "true" |
14 |
| - when: never |
15 |
| - - if: $CHECK_PHP_VERSION == "never" |
16 |
| - when: never |
17 |
| - - if: $RUN_ALL_TESTS == "true" |
18 |
| - when: on_success |
19 |
| - - if: $CHECK_PHP_VERSION == "true" |
20 |
| - when: on_success |
21 |
| - - when: never |
22 |
| - rules: |
23 |
| - - if: $RUN_NO_TESTS == "true" |
24 |
| - when: never |
25 |
| - - if: $CHECK_PHP_VERSION == "false" |
26 |
| - when: never |
27 |
| - - if: $CHECK_PHP_VERSION == "true" |
28 |
| - - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CHECK_PHP_VERSION_MERGE_REQUEST == "true" |
29 |
| - - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS =~ /test-with-health-check/ |
30 |
| - - if: $PIPELINE_TYPE =~ /default-tests/ |
31 |
| - - if: $PIPELINE_TYPE =~ /mr-tests/ |
32 |
| - - if: $CI_COMMIT_TAG |
33 |
| - allow_failure: true |
34 |
| - timeout: 20m # time run: 4m |
35 |
| - interruptible: true |
| 1 | +# todo: should run ob build image and on test images after they are build |
| 2 | +# check-php-version: |
| 3 | +# extends: .abstract_jobs.copy_source |
| 4 | +# stage: test |
| 5 | +# variables: |
| 6 | +# ARG_IMAGE: test-source |
| 7 | +# needs: |
| 8 | +# - docker_build_source |
| 9 | +# script: |
| 10 | +# - echo "PHP version shoud be ${PHP_VERSION}." |
| 11 | +# - php -r "echo 'PHP version is'.PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;" |
| 12 | +# - php -r "if (version_compare(PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION, '${PHP_VERSION}', '!=')) exit(1);" |
| 13 | +# rules: |
| 14 | +# - if: $RUN_NO_TESTS == "true" |
| 15 | +# when: never |
| 16 | +# - if: $CHECK_PHP_VERSION == "never" |
| 17 | +# when: never |
| 18 | +# - if: $RUN_ALL_TESTS == "true" |
| 19 | +# when: on_success |
| 20 | +# - if: $CHECK_PHP_VERSION == "true" |
| 21 | +# when: on_success |
| 22 | +# - when: never |
| 23 | +# rules: |
| 24 | +# - if: $RUN_NO_TESTS == "true" |
| 25 | +# when: never |
| 26 | +# - if: $CHECK_PHP_VERSION == "false" |
| 27 | +# when: never |
| 28 | +# - if: $CHECK_PHP_VERSION == "true" |
| 29 | +# - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CHECK_PHP_VERSION_MERGE_REQUEST == "true" |
| 30 | +# - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS =~ /test-with-health-check/ |
| 31 | +# - if: $PIPELINE_TYPE =~ /default-tests/ |
| 32 | +# - if: $PIPELINE_TYPE =~ /mr-tests/ |
| 33 | +# - if: $CI_COMMIT_TAG |
| 34 | +# allow_failure: true |
| 35 | +# timeout: 20m # time run: 4m |
| 36 | +# interruptible: true |
36 | 37 |
|
37 | 38 | phpstan-analysis:
|
38 | 39 | stage: test
|
|
0 commit comments