Repository URL to install this package:
Version:
0.0.1-0 ▾
|
<?xml version="1.0" encoding="UTF-8"?>
<project name="name-of-project" default="build">
<target name="build" depends="package,deploy"/>
<!-- <target name="composer" description="Run composer install/update, clean up ZF1 dir of tests">
<composer command="self-update" composer="${project.basedir}/composer.phar"></composer>
<composer command="install" composer="${project.basedir}/composer.phar"></composer>
<exec command="find vendor/zendframework/zendframework1/ -maxdepth 1 -not -name zendframework1 -not -name library -exec rm -rf {} \;" passthru="true"/>
</target>
-->
<target name="package" description="package the application into a zpk">
<delete file="${project.basedir}/gotcms.zpk" failonerror="false"/>
<exec command="${php.path}php ${project.basedir}/zs-client.phar packZpk --folder=${project.basedir} --name='gotcms.zpk'" passthru="true" checkreturn="true"/>
</target>
<target name="deploy" description="deploy to the target server">
<exec command="HTTP_TIMEOUT=30 ${php.path}php ${project.basedir}/zs-client.phar installApp --zpk='${project.basedir}/gotcms.zpk' --zskey=${deployment.key} --zssecret=${deployment.secret} --zsurl=${deployment.url} --baseUri=${deployment.baseuri} --createVhost=true --userParams=db_host='${db.host}&db_user=${db.user}&db_password=${db.password}&database=${db.database}&shared_dir=${gotcms.shared_folder}&cookie_domain=${gotcms.cookie_domain}'" passthru="true" checkreturn="true"/>
</target>
<target name="unittest" description="Run unit tests">
<copy file="tests/phpunit.xml.short" tofile="tests/phpunit.xml" overwrite="true"/>
<copy file="tests/TestConfiguration.php.dist" tofile="tests/TestConfiguration.php" overwrite="true"/>
<exec command="sed -i "s/'GC_DATABASE_DRIVER', ''/'GC_DATABASE_DRIVER', 'pdo_mysql'/" tests/TestConfiguration.php" passthru="true"/>
<exec command="sed -i "s/'GC_DATABASE_USERNAME', ''/'GC_DATABASE_USERNAME', '${db.user}'/" tests/TestConfiguration.php" passthru="true"/>
<exec command="sed -i "s/'GC_DATABASE_PASSWORD', ''/'GC_DATABASE_PASSWORD', '${db.password}'/" tests/TestConfiguration.php" passthru="true"/>
<exec command="sed -i "s/'GC_DATABASE_DATABASE', ''/'GC_DATABASE_DATABASE', '${db.database}'/" tests/TestConfiguration.php" passthru="true"/>
<exec command="sed -i "s/'GC_DATABASE_HOSTNAME', ''/'GC_DATABASE_HOSTNAME', '${db.host}'/" tests/TestConfiguration.php" passthru="true"/>
<exec executable="${phpqatools.binpath}phpunit" checkreturn="true" passthru="true">
<arg value="-ctests/phpunit.xml"/>
</exec>
</target>
<target name="phpcs-ci" description="Find coding standard violations using PHP_CodeSniffer creating a log file for the continuous integration server">
<mkdir dir="logs"/>
<exec executable="${phpqatools.binpath}phpcs" output="/dev/null">
<arg value="--report=checkstyle" />
<arg value="--report-file=logs/checkstyle.xml" />
<arg value="--standard=Zend" />
<arg path="./library/" />
<arg path="./module" />
</exec>
</target>
<target name="phpcs" description="Find coding standard violations using PHP_CodeSniffer creating a log file for the continuous integration server">
<exec executable="${phpqatools.binpath}phpcs" passthru="true">
<arg value="--standard=Zend" />
<arg path="./library/" />
<arg path="./module" />
</exec>
</target>
</project>