Updated CRT library, test process, EventLoopGroup API updates (#16)

* Updated to latest aws-crt-ffi, updated EventLoopGroup/options init

* Removed test-ci target, just use test for everything now

* Added event_loop_group API to CRT/stubs

* Removed headers (all generated) from format-check

* Added the ability to force extension vs FFI

* make test will now trigger composer run test/phpunit, and force tests with both FFI and extension

* Updated builder version, removed redundant php7 test run

* Removed type annotations that anger php5, limited backends on php5
This commit is contained in:
Justin Boswell
2021-03-12 11:47:55 -08:00
committed by GitHub
parent ec7900afb5
commit 9171857448
13 changed files with 237 additions and 175 deletions
+10 -10
View File
@@ -58,19 +58,19 @@ ext/api.h : src/api.h
# FFI target
ffi: src/libaws-crt-ffi.so
TEST_FFI = 1
# copy the lib into the src folder
src/libaws-crt-ffi.so: $(BUILD_DIR)/aws-crt-ffi-shared/libaws-crt-ffi.so $(INSTALL_DIR)/src/api.h
cp -v $(BUILD_DIR)/aws-crt-ffi-shared/libaws-crt-ffi.so $(INSTALL_DIR)/src/libaws-crt-ffi.so
src/libaws-crt-ffi.so: $(BUILD_DIR)/aws-crt-ffi-shared/libaws-crt-ffi.so src/api.h
cp -v $(BUILD_DIR)/aws-crt-ffi-shared/libaws-crt-ffi.so src/libaws-crt-ffi.so
ifeq ($(TEST_FFI),1)
test-ci: test-ffi
# Test the FFI interface on PHP7+
ifeq ($(AT_LEAST_PHP7), 1)
test: src/libaws-crt-ffi.so
composer update
AWS_CRT_PHP_EXTENSION=1 composer run test
AWS_CRT_PHP_FFI=1 composer run test
else
test-ci: test
endif
# Test the FFI interface
test-ffi: src/libaws-crt-ffi.so
test: ext/api.h ext/awscrt_arginfo.h ext/crt.lo
composer update
composer run test
endif