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 /.gitlab-ci.yml | |
| parent | 4e0adde7c9f59b39e280d5766cc1b0fca8d71864 (diff) | |
Use gitlab-ci for all supported php versions
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 57 |
1 files changed, 32 insertions, 25 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 | ||
