summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 75aa17ef4586e78a8394393a689bfaf2a869d9f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
stages:
  - testsuite

testsuite:debian:
  image: debian
  stage: testsuite
  script:
    - apt-get -qqy update
    - apt-get -qqy install --no-install-recommends php-dev gcc make libpcre3-dev
    - make debug

testsuite:fedora:
  image: fedora
  stage: testsuite
  script:
    - dnf install -y php-devel gcc make pcre-devel
    - make debug

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 debug

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"