Skip to content

Commit

Permalink
Use gitlab-ci for all supported php versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoisin committed Jan 2, 2021
1 parent 4e0adde commit b65565a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 26 deletions.
57 changes: 32 additions & 25 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,44 @@
stages:
- testsuite

testsuite:debian:
image: debian
.php7:
stage: testsuite
script:
- apt-get -qqy update
- apt-get -qqy install --no-install-recommends php-dev gcc make libpcre3-dev
- pecl install vld-beta
- rm -rf src/tests/*php8*/
- make tests
after_script:
- grep -r . ./src/tests/*/*.out
- grep -r . ./src/tests/*/*.diff

testsuite:fedora:
image: fedora
.php8:
stage: testsuite
script:
- dnf install -y php-devel gcc make pcre-devel
- make tests
after_script:
- grep -r . ./src/tests/*/*.out
- grep -r . ./src/tests/*/*.diff

testsuite:ubuntu:
image: ubuntu
stage: testsuite
script:
- apt-get -qqy update
- DEBIAN_FRONTEND=noninteractive apt-get -qqy install --no-install-recommends php-dev gcc make libpcre3-dev php-cgi php-curl php-xml
- make tests
testsuite:php7.0:
extends: .php7
image: php:7.0

testsuite:alpine:
image: alpine
stage: testsuite
script:
- apk update
- apk add php7-dev php7-cgi php7-simplexml php7-xml make gcc musl-dev pcre-dev
- make compile_debug
- TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test TESTS="tests/cookies_encryption tests/deny_writable tests/disable_function"
- TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test TESTS="tests/dump_request tests/eval_blacklist tests/global_strict"
- TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test TESTS="tests/harden_rand tests/sloppy_comparison"
- TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test TESTS="tests/unserialize tests/xx tests/xxee"
testsuite:php7.1:
extends: .php7
image: php:7.1

testsuite:php7.2:
extends: .php7
image: php:7.2

testsuite:php7.3:
extends: .php7
image: php:7.3

testsuite:php7.4:
extends: .php7
image: php:7.3

testsuite:php8.0:
extends: .php8
image: php:8.0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Readonly execution attempt (simulation mode)
<?php if (PHP_VERSION_ID >= 80000) print "skip"; ?>
<?php
if (!extension_loaded("snuffleupagus")) { print "skip" };
if ("ubuntu" == getenv("CI_JOB_IMAGE")) { print "skip"; }

// root has write privileges on any file
if (TRUE == function_exists("posix_getuid")) {
Expand All @@ -19,6 +18,7 @@ if (TRUE == function_exists("posix_getuid")) {
?>
--INI--
sp.configuration_file={PWD}/config/config_disable_writable_simulation.ini
--XFAIL--
--FILE--
<?php
$dir = __DIR__;
Expand Down

0 comments on commit b65565a

Please sign in to comment.