Simplify Ubuntu CI

As suggested by @remicollet.  This drastically reduces the need for our
hacks; actually, we only need the workaround to define HAVE_MBSTRING
since apparently, the extension had been build with `phpize`, and as
such the desired entry in main/php_config.php is missing.

Closes GH-15.
This commit is contained in:
Christoph M. Becker
2021-09-02 15:15:57 +02:00
parent 7fe7a0316f
commit 0f0eb2f48c

View File

@@ -21,16 +21,14 @@ jobs:
run: phpize
- name: configure
run: ./configure --enable-mailparse
- name: hack 1
- name: work around missing HAVE_MBSTRING in main/php_config.h
run: echo '#define HAVE_MBSTRING 1' >> config.h
- name: make
run: make
- name: hack 2
run: cp `php-config --extension-dir`/mbstring.so modules
- name: hack 3
run: sed -i 's/-d extension_dir/ -d extension=mbstring.so -d extension_dir/' Makefile
- name: test
run: make test TESTS="--show-diff tests"
run: |
export TEST_PHP_ARGS="-n -d extension=mbstring.so -d extension=modules/mailparse.so"
php run-tests.php -P --show-diff tests
windows:
defaults:
run: