diff --git a/ci/apache_81_114/docker-compose.yml b/ci/apache_81_114/docker-compose.yml index 99364d6d14e..e2659747fe1 100644 --- a/ci/apache_81_114/docker-compose.yml +++ b/ci/apache_81_114/docker-compose.yml @@ -1,5 +1,4 @@ # docker-compose.yml for travis ci testing -version: '3.1' services: mysql: restart: always diff --git a/ci/apache_82_114/docker-compose.yml b/ci/apache_82_114/docker-compose.yml index a5e380a8a1b..b2701e39129 100644 --- a/ci/apache_82_114/docker-compose.yml +++ b/ci/apache_82_114/docker-compose.yml @@ -1,5 +1,4 @@ # docker-compose.yml for travis ci testing -version: '3.1' services: mysql: restart: always diff --git a/ci/apache_83_1011/docker-compose.yml b/ci/apache_83_1011/docker-compose.yml index d22ac6180c1..092c71733a9 100644 --- a/ci/apache_83_1011/docker-compose.yml +++ b/ci/apache_83_1011/docker-compose.yml @@ -1,5 +1,4 @@ # docker-compose.yml for travis ci testing -version: '3.1' services: mysql: restart: always diff --git a/ci/apache_83_105/docker-compose.yml b/ci/apache_83_105/docker-compose.yml index f53a3d6a4c9..7fe7578ecb0 100644 --- a/ci/apache_83_105/docker-compose.yml +++ b/ci/apache_83_105/docker-compose.yml @@ -1,5 +1,4 @@ # docker-compose.yml for travis ci testing -version: '3.1' services: mysql: restart: always diff --git a/ci/apache_83_106/docker-compose.yml b/ci/apache_83_106/docker-compose.yml index 079156f7aa7..fac411a2536 100644 --- a/ci/apache_83_106/docker-compose.yml +++ b/ci/apache_83_106/docker-compose.yml @@ -1,5 +1,4 @@ # docker-compose.yml for travis ci testing -version: '3.1' services: mysql: restart: always diff --git a/ci/apache_83_111/docker-compose.yml b/ci/apache_83_111/docker-compose.yml index 5c5db2b37f4..1c0ef4b3dc2 100644 --- a/ci/apache_83_111/docker-compose.yml +++ b/ci/apache_83_111/docker-compose.yml @@ -1,5 +1,4 @@ # docker-compose.yml for travis ci testing -version: '3.1' services: mysql: restart: always diff --git a/ci/apache_83_112/docker-compose.yml b/ci/apache_83_112/docker-compose.yml index 2c9cad884d7..dcdf64289d8 100644 --- a/ci/apache_83_112/docker-compose.yml +++ b/ci/apache_83_112/docker-compose.yml @@ -1,5 +1,4 @@ # docker-compose.yml for travis ci testing -version: '3.1' services: mysql: restart: always diff --git a/ci/apache_83_114/docker-compose.yml b/ci/apache_83_114/docker-compose.yml index 73166b363c2..b0eb5e2f670 100644 --- a/ci/apache_83_114/docker-compose.yml +++ b/ci/apache_83_114/docker-compose.yml @@ -1,5 +1,4 @@ # docker-compose.yml for travis ci testing -version: '3.1' services: mysql: restart: always diff --git a/ci/apache_83_57/docker-compose.yml b/ci/apache_83_57/docker-compose.yml index 98821d74ffc..cff78a2dcce 100644 --- a/ci/apache_83_57/docker-compose.yml +++ b/ci/apache_83_57/docker-compose.yml @@ -1,5 +1,4 @@ # docker-compose.yml for travis ci testing -version: '3.1' services: mysql: restart: always diff --git a/ci/apache_83_80/docker-compose.yml b/ci/apache_83_80/docker-compose.yml index 270184981b2..deccb1cac79 100644 --- a/ci/apache_83_80/docker-compose.yml +++ b/ci/apache_83_80/docker-compose.yml @@ -1,5 +1,4 @@ # docker-compose.yml for travis ci testing -version: '3.1' services: mysql: restart: always diff --git a/ci/apache_83_84/docker-compose.yml b/ci/apache_83_84/docker-compose.yml index 81cf23dbb5e..25f60dcf6db 100644 --- a/ci/apache_83_84/docker-compose.yml +++ b/ci/apache_83_84/docker-compose.yml @@ -1,5 +1,4 @@ # docker-compose.yml for travis ci testing -version: '3.1' services: mysql: restart: always diff --git a/ci/ciLibrary.source b/ci/ciLibrary.source index 42374f0ee20..a90943a2c59 100644 --- a/ci/ciLibrary.source +++ b/ci/ciLibrary.source @@ -30,7 +30,7 @@ composer_github_auth() { dockers_env_start() { failTest=false cd ci/${DOCKER_DIR} || failTest=true - docker-compose up -d || failTest=true + docker compose up -d || failTest=true cd ../../ || failTest=true if $failTest; then exit 1 @@ -70,14 +70,14 @@ install_configure() { sudo chmod 666 sites/default/sqlconf.php || failTest=true sudo chmod -R 777 sites/default/documents || failTest=true sed -e 's@^exit;@ @' < contrib/util/installScripts/InstallerAuto.php > contrib/util/installScripts/InstallerAutoTemp.php || failTest=true - docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "php -f ${OPENEMR_DIR}/contrib/util/installScripts/InstallerAutoTemp.php rootpass=root server=mysql loginhost=%" || failTest=true - docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "rm -f ${OPENEMR_DIR}/contrib/util/installScripts/InstallerAutoTemp.php" || failTest=true - docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c 'mysql -u openemr --password="openemr" -h mysql -e "INSERT INTO product_registration (opt_out) VALUES (1)" openemr' || failTest=true - docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c 'mysql -u openemr --password="openemr" -h mysql -e "UPDATE globals SET gl_value = 1 WHERE gl_name = \"rest_api\"" openemr' || failTest=true - docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c 'mysql -u openemr --password="openemr" -h mysql -e "UPDATE globals SET gl_value = 1 WHERE gl_name = \"rest_fhir_api\"" openemr' || failTest=true - docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c 'mysql -u openemr --password="openemr" -h mysql -e "UPDATE globals SET gl_value = 1 WHERE gl_name = \"rest_portal_api\"" openemr' || failTest=true - docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c 'mysql -u openemr --password="openemr" -h mysql -e "UPDATE globals SET gl_value = 3 WHERE gl_name = \"oauth_password_grant\"" openemr' || failTest=true - docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c 'mysql -u openemr --password="openemr" -h mysql -e "UPDATE globals SET gl_value = 1 WHERE gl_name = \"rest_system_scopes_api\"" openemr' || failTest=true + docker exec -i $(docker ps | grep openemr- | cut -f 1 -d " ") sh -c "php -f ${OPENEMR_DIR}/contrib/util/installScripts/InstallerAutoTemp.php rootpass=root server=mysql loginhost=%" || failTest=true + docker exec -i $(docker ps | grep openemr- | cut -f 1 -d " ") sh -c "rm -f ${OPENEMR_DIR}/contrib/util/installScripts/InstallerAutoTemp.php" || failTest=true + docker exec -i $(docker ps | grep openemr- | cut -f 1 -d " ") sh -c 'mysql -u openemr --password="openemr" -h mysql -e "INSERT INTO product_registration (opt_out) VALUES (1)" openemr' || failTest=true + docker exec -i $(docker ps | grep openemr- | cut -f 1 -d " ") sh -c 'mysql -u openemr --password="openemr" -h mysql -e "UPDATE globals SET gl_value = 1 WHERE gl_name = \"rest_api\"" openemr' || failTest=true + docker exec -i $(docker ps | grep openemr- | cut -f 1 -d " ") sh -c 'mysql -u openemr --password="openemr" -h mysql -e "UPDATE globals SET gl_value = 1 WHERE gl_name = \"rest_fhir_api\"" openemr' || failTest=true + docker exec -i $(docker ps | grep openemr- | cut -f 1 -d " ") sh -c 'mysql -u openemr --password="openemr" -h mysql -e "UPDATE globals SET gl_value = 1 WHERE gl_name = \"rest_portal_api\"" openemr' || failTest=true + docker exec -i $(docker ps | grep openemr- | cut -f 1 -d " ") sh -c 'mysql -u openemr --password="openemr" -h mysql -e "UPDATE globals SET gl_value = 3 WHERE gl_name = \"oauth_password_grant\"" openemr' || failTest=true + docker exec -i $(docker ps | grep openemr- | cut -f 1 -d " ") sh -c 'mysql -u openemr --password="openemr" -h mysql -e "UPDATE globals SET gl_value = 1 WHERE gl_name = \"rest_system_scopes_api\"" openemr' || failTest=true if $failTest; then exit 1 fi @@ -85,7 +85,7 @@ install_configure() { build_test_unit() { failTest=false - docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite unit --testdox" || failTest=true + docker exec -i $(docker ps | grep openemr- | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite unit --testdox" || failTest=true if $failTest; then exit 1 fi @@ -95,19 +95,19 @@ build_test_e2e() { # Since e2e testing is a bit inconsistent, gonna do up to three runs (and only one needs to pass to pass the e2e testing) # first run failTest=false - docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "${CHROMIUM_INSTALL}; export PANTHER_NO_SANDBOX=1; export PANTHER_CHROME_ARGUMENTS='--disable-dev-shm-usage'; cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite e2e --testdox" || failTest=true + docker exec -i $(docker ps | grep openemr- | cut -f 1 -d " ") sh -c "${CHROMIUM_INSTALL}; export PANTHER_NO_SANDBOX=1; export PANTHER_CHROME_ARGUMENTS='--disable-dev-shm-usage'; cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite e2e --testdox" || failTest=true if [ "$failTest" == false ]; then exit fi # try run again failTest=false - docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "${CHROMIUM_INSTALL}; export PANTHER_NO_SANDBOX=1; export PANTHER_CHROME_ARGUMENTS='--disable-dev-shm-usage'; cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite e2e --testdox" || failTest=true + docker exec -i $(docker ps | grep openemr- | cut -f 1 -d " ") sh -c "${CHROMIUM_INSTALL}; export PANTHER_NO_SANDBOX=1; export PANTHER_CHROME_ARGUMENTS='--disable-dev-shm-usage'; cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite e2e --testdox" || failTest=true if [ "$failTest" == false ]; then exit fi # hail mary run failTest=false - docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "${CHROMIUM_INSTALL}; export PANTHER_NO_SANDBOX=1; export PANTHER_CHROME_ARGUMENTS='--disable-dev-shm-usage'; cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite e2e --testdox" || failTest=true + docker exec -i $(docker ps | grep openemr- | cut -f 1 -d " ") sh -c "${CHROMIUM_INSTALL}; export PANTHER_NO_SANDBOX=1; export PANTHER_CHROME_ARGUMENTS='--disable-dev-shm-usage'; cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite e2e --testdox" || failTest=true if [ "$failTest" == false ]; then exit fi @@ -117,7 +117,7 @@ build_test_e2e() { build_test_api() { failTest=false - docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite api --testdox" || failTest=true + docker exec -i $(docker ps | grep openemr- | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite api --testdox" || failTest=true if $failTest; then exit 1 fi @@ -125,7 +125,7 @@ build_test_api() { build_test_fixtures() { failTest=false - docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite fixtures --testdox" || failTest=true + docker exec -i $(docker ps | grep openemr- | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite fixtures --testdox" || failTest=true if $failTest; then exit 1 fi @@ -133,7 +133,7 @@ build_test_fixtures() { build_test_services() { failTest=false - docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite services --testdox" || failTest=true + docker exec -i $(docker ps | grep openemr- | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite services --testdox" || failTest=true if $failTest; then exit 1 fi @@ -141,7 +141,7 @@ build_test_services() { build_test_validators() { failTest=false - docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite validators --testdox" || failTest=true + docker exec -i $(docker ps | grep openemr- | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite validators --testdox" || failTest=true if $failTest; then exit 1 fi @@ -149,7 +149,7 @@ build_test_validators() { build_test_controllers() { failTest=false - docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite controllers --testdox" || failTest=true + docker exec -i $(docker ps | grep openemr- | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite controllers --testdox" || failTest=true if $failTest; then exit 1 fi @@ -157,7 +157,7 @@ build_test_controllers() { build_test_common() { failTest=false - docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite common --testdox" || failTest=true + docker exec -i $(docker ps | grep openemr- | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite common --testdox" || failTest=true if $failTest; then exit 1 fi diff --git a/ci/nginx_81/docker-compose.yml b/ci/nginx_81/docker-compose.yml index b63aa0c758f..1d46652a5bc 100644 --- a/ci/nginx_81/docker-compose.yml +++ b/ci/nginx_81/docker-compose.yml @@ -1,5 +1,4 @@ # docker-compose.yml for travis ci testing -version: '3.1' services: mysql: restart: always diff --git a/ci/nginx_82/docker-compose.yml b/ci/nginx_82/docker-compose.yml index 22a4e6f6414..3139e7f06e3 100644 --- a/ci/nginx_82/docker-compose.yml +++ b/ci/nginx_82/docker-compose.yml @@ -1,5 +1,4 @@ # docker-compose.yml for travis ci testing -version: '3.1' services: mysql: restart: always diff --git a/ci/nginx_83/docker-compose.yml b/ci/nginx_83/docker-compose.yml index 7fc8bb78de0..f1df8798529 100644 --- a/ci/nginx_83/docker-compose.yml +++ b/ci/nginx_83/docker-compose.yml @@ -1,5 +1,4 @@ # docker-compose.yml for travis ci testing -version: '3.1' services: mysql: restart: always diff --git a/ci/nginx_84/docker-compose.yml b/ci/nginx_84/docker-compose.yml index 13c954f3744..cc53c6294f0 100644 --- a/ci/nginx_84/docker-compose.yml +++ b/ci/nginx_84/docker-compose.yml @@ -1,5 +1,4 @@ # docker-compose.yml for travis ci testing -version: '3.1' services: mysql: restart: always