Server IP : 185.86.78.101 / Your IP : 216.73.216.124 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/wwwroot/mifepriston.org/vendor/yiisoft/yii2-gii/ |
Upload File : |
# default versions to test against # these can be overridden by setting the environment variables in the shell PHP_VERSION=php-5.6.8 YII_VERSION=dev-master PGSQL_VERSION=latest # ensure all the configuration variables above are in environment of the shell commands below export help: @echo "make test - run phpunit tests using a docker environment" @echo "make inspect - connect to the postrges docker container using psql" @echo "make clean - stop docker and remove container" test: docker-php docker-pgsql adjust-config composer require "yiisoft/yii2:${YII_VERSION}" --prefer-dist composer install --prefer-dist docker run --rm=true -v $(shell pwd):/var/lib/postgresql/data --link $(shell cat tests/dockerids/pgsql):postgres postgres:${PGSQL_VERSION} sh -c 'psql -h postgres -U postgres -c "CREATE DATABASE yiitest;"; psql -h postgres -U postgres yiitest < /var/lib/postgresql/data/tests/data/pgsql.sql' docker run --rm=true -v $(shell pwd):/opt/test --link $(shell cat tests/dockerids/pgsql):postgres yiitest/php:${PHP_VERSION} phpunit --verbose --color adjust-config: echo "<?php \$$config['databases']['pgsql']['dsn'] = 'pgsql:host=postgres;port=5432;dbname=yiitest'; \$$config['databases']['pgsql']['fixture'] = null;" > tests/data/config.local.php docker-pgsql: dockerfiles docker pull postgres:${PGSQL_VERSION} docker run -d -P postgres:${PGSQL_VERSION} > tests/dockerids/pgsql sleep 2 docker-php: dockerfiles cd tests/docker/php && sh build.sh dockerfiles: test -d tests/docker || git clone https://github.com/cebe/jenkins-test-docker tests/docker cd tests/docker && git checkout -- . && git pull mkdir -p tests/dockerids inspect: docker run -it --rm=true --link $(shell cat tests/dockerids/pgsql):postgres postgres:${PGSQL_VERSION} sh -c 'exec psql -h postgres -U postgres yiitest' clean: docker stop $(shell cat tests/dockerids/pgsql) docker rm $(shell cat tests/dockerids/pgsql) rm tests/dockerids/pgsql