- if [ "$TRAVIS_PHP_VERSION" = "7.4" ]; then ./tests/ci/setup/setup_code_coverage.sh enable && export PHPUNIT_OPTS="--coverage-clover=coverage.clover"; fi
script:
- ./vendor/bin/phpunit -v $PHPUNIT_OPTS tests
+ - ./vendor/bin/phpunit -v $PHPUNIT_OPTS tests
+ - python3 extras/test.py
after_failure:
# Troubleshoot test env build problems
import xmlrpc.client
import base64
-import sys
+#import sys
-server = xmlrpc.client.ServerProxy("http://gggeek.altervista.org/sw/xmlrpc/demo/server/server.php")
+server = xmlrpc.client.ServerProxy("http://localhost/demo/server/server.php")
try:
print ("Got '" + server.examples.getStateName(32) + "'")
--- /dev/null
+#!/bin/sh
+
+# Installs php modules necessary to test the Perl file in the extras dir
+
+# Has to be run as admin
+
+set -e
+
+DEBIAN_FRONTEND=noninteractive apt-get install -y \
+ apt install libexpat1-dev
+
+yes | perl -MCPAN -e 'install XML::Parser'
+yes | perl -MCPAN -e 'install Frontier::Client'