summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2021-01-02 15:49:24 +0100
committerjvoisin2021-01-02 16:41:08 +0100
commitb65565ac2c13e717dfc12d89479dd98e24089e08 (patch)
tree94ab2492759d700871a351ccf1d928718d6c851e
parent4e0adde7c9f59b39e280d5766cc1b0fca8d71864 (diff)
Use gitlab-ci for all supported php versions
-rw-r--r--.gitlab-ci.yml57
-rw-r--r--src/tests/deny_writable/deny_writable_execution_simulation.phpt2
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 @@
1stages: 1stages:
2 - testsuite 2 - testsuite
3 3
4testsuite: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
12testsuite: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
19testsuite:ubuntu: 22testsuite: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
27testsuite:alpine: 26testsuite:php7.1:
28 image: alpine 27 extends: .php7
29 stage: testsuite 28 image: php:7.1
30 script: 29
31 - apk update 30testsuite: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" 34testsuite: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
38testsuite:php7.4:
39 extends: .php7
40 image: php:7.3
41
42testsuite: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
6if (!extension_loaded("snuffleupagus")) { print "skip" }; 6if (!extension_loaded("snuffleupagus")) { print "skip" };
7if ("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
10if (TRUE == function_exists("posix_getuid")) { 9if (TRUE == function_exists("posix_getuid")) {
@@ -19,6 +18,7 @@ if (TRUE == function_exists("posix_getuid")) {
19 ?> 18 ?>
20--INI-- 19--INI--
21sp.configuration_file={PWD}/config/config_disable_writable_simulation.ini 20sp.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__;