Made a few updates to travis config and various build properties

This commit is contained in:
Joshua Estes 2014-07-03 11:26:15 -04:00
parent e662a08f7c
commit 0bbe59329b
4 changed files with 18 additions and 6 deletions

View File

@ -3,15 +3,13 @@ php:
- 5.5
- 5.4
- 5.3
before_install:
- sudo apt-get install php5-xdebug
install:
- composer install
before_script:
- mysql -e 'create database magento;'
- if [ -e build/magento/app/etc/local.xml ]; then rm build/magento/app/etc/local.xml; fi
- php bin/n98-magerun install --dbHost="127.0.0.1" --dbUser="travis" --dbPass="" --dbName="magento" --installSampleData=yes --useDefaultConfigParams=yes --magentoVersion="1.9.0.1" --installationFolder="build/magento" --baseUrl="http://www.localhost.com:8080" -n
script: php bin/phing build-travis
script: php bin/phing -propertyfile travis.properties build-travis
cache:
directories:
- vendor

View File

@ -1 +1,3 @@
# Running a build locally
# Running a build locally, this also is used
# to define all the default properties.
DB_USER=root

View File

@ -1,17 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="bitpay/magento-plugin" default="build">
<!--
-->
<property file="build.properties" />
<!--
Default build for running a build locally
-->
<target name="build" depends="lint,phpunit">
<property file="build.properties" />
</target>
<!--
Used to run a build on Travis CI
-->
<target name="build-travis" depends="lint,phpunit,coveralls">
<property file="travis.properties" />
</target>
<target name="clean" hidden="true">
@ -42,4 +44,13 @@
<arg value="-v" />
</exec>
</target>
<target name="database:create">
<exec executable="mysql" passthru="true">
<arg value="-u" />
<arg value="${DB_USER}" />
<arg value="-e" />
<arg value="'create database magento;'" />
</exec>
</target>
</project>

View File

@ -1 +1,2 @@
# Properties file for running a build on Travis CI
DB_USER=travis