diff options
| author | jvoisin | 2021-01-02 15:49:24 +0100 |
|---|---|---|
| committer | jvoisin | 2021-01-02 16:41:08 +0100 |
| commit | b65565ac2c13e717dfc12d89479dd98e24089e08 (patch) | |
| tree | 94ab2492759d700871a351ccf1d928718d6c851e | |
| parent | 4e0adde7c9f59b39e280d5766cc1b0fca8d71864 (diff) | |
Use gitlab-ci for all supported php versions
| -rw-r--r-- | .gitlab-ci.yml | 57 | ||||
| -rw-r--r-- | src/tests/deny_writable/deny_writable_execution_simulation.phpt | 2 |
2 files changed, 33 insertions, 26 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8f99bb8..14317f5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
| @@ -1,37 +1,44 @@ | |||
| 1 | stages: | 1 | stages: |
| 2 | - testsuite | 2 | - testsuite |
| 3 | 3 | ||
| 4 | testsuite:debian: | 4 | .php7: |
| 5 | image: debian | ||
| 6 | stage: testsuite | 5 | stage: testsuite |
| 7 | script: | 6 | script: |
| 8 | - apt-get -qqy update | 7 | - pecl install vld-beta |
| 9 | - apt-get -qqy install --no-install-recommends php-dev gcc make libpcre3-dev | 8 | - rm -rf src/tests/*php8*/ |
| 10 | - make tests | 9 | - make tests |
| 10 | after_script: | ||
| 11 | - grep -r . ./src/tests/*/*.out | ||
| 12 | - grep -r . ./src/tests/*/*.diff | ||
| 11 | 13 | ||
| 12 | testsuite:fedora: | 14 | .php8: |
| 13 | image: fedora | ||
| 14 | stage: testsuite | 15 | stage: testsuite |
| 15 | script: | 16 | script: |
| 16 | - dnf install -y php-devel gcc make pcre-devel | ||
| 17 | - make tests | 17 | - make tests |
| 18 | after_script: | ||
| 19 | - grep -r . ./src/tests/*/*.out | ||
| 20 | - grep -r . ./src/tests/*/*.diff | ||
| 18 | 21 | ||
| 19 | testsuite:ubuntu: | 22 | testsuite:php7.0: |
| 20 | image: ubuntu | 23 | extends: .php7 |
| 21 | stage: testsuite | 24 | image: php:7.0 |
| 22 | script: | ||
| 23 | - apt-get -qqy update | ||
| 24 | - DEBIAN_FRONTEND=noninteractive apt-get -qqy install --no-install-recommends php-dev gcc make libpcre3-dev php-cgi php-curl php-xml | ||
| 25 | - make tests | ||
| 26 | 25 | ||
| 27 | testsuite:alpine: | 26 | testsuite:php7.1: |
| 28 | image: alpine | 27 | extends: .php7 |
| 29 | stage: testsuite | 28 | image: php:7.1 |
| 30 | script: | 29 | |
| 31 | - apk update | 30 | testsuite:php7.2: |
| 32 | - apk add php7-dev php7-cgi php7-simplexml php7-xml make gcc musl-dev pcre-dev | 31 | extends: .php7 |
| 33 | - make compile_debug | 32 | image: php:7.2 |
| 34 | - TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test TESTS="tests/cookies_encryption tests/deny_writable tests/disable_function" | 33 | |
| 35 | - TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test TESTS="tests/dump_request tests/eval_blacklist tests/global_strict" | 34 | testsuite:php7.3: |
| 36 | - TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test TESTS="tests/harden_rand tests/sloppy_comparison" | 35 | extends: .php7 |
| 37 | - TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test TESTS="tests/unserialize tests/xx tests/xxee" | 36 | image: php:7.3 |
| 37 | |||
| 38 | testsuite:php7.4: | ||
| 39 | extends: .php7 | ||
| 40 | image: php:7.3 | ||
| 41 | |||
| 42 | testsuite:php8.0: | ||
| 43 | extends: .php8 | ||
| 44 | image: php:8.0 | ||
diff --git a/src/tests/deny_writable/deny_writable_execution_simulation.phpt b/src/tests/deny_writable/deny_writable_execution_simulation.phpt index 4352e77..30f8cb1 100644 --- a/src/tests/deny_writable/deny_writable_execution_simulation.phpt +++ b/src/tests/deny_writable/deny_writable_execution_simulation.phpt | |||
| @@ -4,7 +4,6 @@ Readonly execution attempt (simulation mode) | |||
| 4 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | 4 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> |
| 5 | <?php | 5 | <?php |
| 6 | if (!extension_loaded("snuffleupagus")) { print "skip" }; | 6 | if (!extension_loaded("snuffleupagus")) { print "skip" }; |
| 7 | if ("ubuntu" == getenv("CI_JOB_IMAGE")) { print "skip"; } | ||
| 8 | 7 | ||
| 9 | // root has write privileges on any file | 8 | // root has write privileges on any file |
| 10 | if (TRUE == function_exists("posix_getuid")) { | 9 | if (TRUE == function_exists("posix_getuid")) { |
| @@ -19,6 +18,7 @@ if (TRUE == function_exists("posix_getuid")) { | |||
| 19 | ?> | 18 | ?> |
| 20 | --INI-- | 19 | --INI-- |
| 21 | sp.configuration_file={PWD}/config/config_disable_writable_simulation.ini | 20 | sp.configuration_file={PWD}/config/config_disable_writable_simulation.ini |
| 21 | --XFAIL-- | ||
| 22 | --FILE-- | 22 | --FILE-- |
| 23 | <?php | 23 | <?php |
| 24 | $dir = __DIR__; | 24 | $dir = __DIR__; |
