diff options
| author | jvoisin | 2020-11-11 19:26:17 +0100 |
|---|---|---|
| committer | jvoisin | 2020-11-11 19:26:17 +0100 |
| commit | c0c0cf70a8579095d5b7c0fb53f86fca21799e52 (patch) | |
| tree | fa23a6401f24c29661c476ccfb18492372366aff | |
| parent | c76c67ce7624bab488790a4843eb12348c6c044a (diff) | |
Add a `make tests` to run the testsuite
| -rw-r--r-- | .gitlab-ci.yml | 6 | ||||
| -rw-r--r-- | Makefile | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 75aa17e..8f99bb8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
| @@ -7,14 +7,14 @@ testsuite:debian: | |||
| 7 | script: | 7 | script: |
| 8 | - apt-get -qqy update | 8 | - apt-get -qqy update |
| 9 | - apt-get -qqy install --no-install-recommends php-dev gcc make libpcre3-dev | 9 | - apt-get -qqy install --no-install-recommends php-dev gcc make libpcre3-dev |
| 10 | - make debug | 10 | - make tests |
| 11 | 11 | ||
| 12 | testsuite:fedora: | 12 | testsuite:fedora: |
| 13 | image: fedora | 13 | image: fedora |
| 14 | stage: testsuite | 14 | stage: testsuite |
| 15 | script: | 15 | script: |
| 16 | - dnf install -y php-devel gcc make pcre-devel | 16 | - dnf install -y php-devel gcc make pcre-devel |
| 17 | - make debug | 17 | - make tests |
| 18 | 18 | ||
| 19 | testsuite:ubuntu: | 19 | testsuite:ubuntu: |
| 20 | image: ubuntu | 20 | image: ubuntu |
| @@ -22,7 +22,7 @@ testsuite:ubuntu: | |||
| 22 | script: | 22 | script: |
| 23 | - apt-get -qqy update | 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 | 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 debug | 25 | - make tests |
| 26 | 26 | ||
| 27 | testsuite:alpine: | 27 | testsuite:alpine: |
| 28 | image: alpine | 28 | image: alpine |
| @@ -18,8 +18,7 @@ compile_debug: ## compile a debug build | |||
| 18 | export CFLAGS="-g3 -ggdb -O1 -g"; cd src; ./configure --enable-snuffleupagus --enable-debug | 18 | export CFLAGS="-g3 -ggdb -O1 -g"; cd src; ./configure --enable-snuffleupagus --enable-debug |
| 19 | make -C src | 19 | make -C src |
| 20 | 20 | ||
| 21 | debug: compile_debug ## compile and run a debug build | 21 | tests: release |
| 22 | sed -i "s/\$$ext_params -d display_errors=0 -r/-d display_errors=0 -r/" src/run-tests.php | ||
| 23 | TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test | 22 | TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test |
| 24 | 23 | ||
| 25 | coverage: ## compile snuffleugpaus, and run the testsuite with coverage | 24 | coverage: ## compile snuffleugpaus, and run the testsuite with coverage |
