Skip to content

Commit

Permalink
Add a make tests to run the testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoisin committed Nov 11, 2020
1 parent c76c67c commit c0c0cf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .gitlab-ci.yml
Expand Up @@ -7,22 +7,22 @@ testsuite:debian:
script:
- apt-get -qqy update
- apt-get -qqy install --no-install-recommends php-dev gcc make libpcre3-dev
- make debug
- make tests

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

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
- make tests

testsuite:alpine:
image: alpine
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Expand Up @@ -18,8 +18,7 @@ compile_debug: ## compile a debug build
export CFLAGS="-g3 -ggdb -O1 -g"; cd src; ./configure --enable-snuffleupagus --enable-debug
make -C src

debug: compile_debug ## compile and run a debug build
sed -i "s/\$$ext_params -d display_errors=0 -r/-d display_errors=0 -r/" src/run-tests.php
tests: release
TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test

coverage: ## compile snuffleugpaus, and run the testsuite with coverage
Expand Down

0 comments on commit c0c0cf7

Please sign in to comment.