oops
authorgggeek <giunta.gaetano@gmail.com>
Thu, 31 Dec 2020 14:29:45 +0000 (14:29 +0000)
committergggeek <giunta.gaetano@gmail.com>
Thu, 31 Dec 2020 14:29:45 +0000 (14:29 +0000)
.travis.yml
extras/test.py
tests/ci/setup/setup_perl.sh [new file with mode: 0644]

index ce75cec..e285205 100644 (file)
@@ -52,7 +52,8 @@ before_script:
   - 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
index 034eb8a..9dbd709 100644 (file)
@@ -3,9 +3,9 @@
 
 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) + "'")
diff --git a/tests/ci/setup/setup_perl.sh b/tests/ci/setup/setup_perl.sh
new file mode 100644 (file)
index 0000000..a4278f7
--- /dev/null
@@ -0,0 +1,13 @@
+#!/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'