Setting up more stuff for travis and small bux fix with build script

This commit is contained in:
Joshua Estes 2014-07-03 12:38:45 -04:00
parent f40c9c2f9c
commit a4b128929c
4 changed files with 29 additions and 3 deletions

View File

@ -12,5 +12,5 @@ before_script:
script: php bin/phing -propertyfile travis.properties build-travis
cache:
directories:
- vendor
- build/magento
- vendor
- build/magento

View File

@ -1,3 +1,7 @@
# Running a build locally, this also is used
# to define all the default properties.
DB_USER=root
DB_PASS=
DB_NAME=magento
DB_HOST=127.0.0.1
MAGENTO_VERSION=1.9.0.1

View File

@ -18,6 +18,7 @@
<target name="clean" hidden="true">
<delete dir="build/logs" verbose="true" />
<delete file="build/magento/app/etc/local.xml" verbose="true" />
</target>
<target name="prepare" depends="clean" hidden="true">
@ -50,7 +51,24 @@
<arg value="-u" />
<arg value="${DB_USER}" />
<arg value="-e" />
<arg value="'create database magento;'" />
<arg value="'create database ${DB_NAME};'" />
</exec>
</target>
<target name="magento:install" depends="prepare">
<exec executable="bin/n98-magerun" passthru="true" escape="true" level="debug">
<arg value="install" />
<arg value="-n" />
<arg value="--forceUseDb=${DB_NAME}" />
<arg value="--magentoVersion=${MAGENTO_VERSION}" />
<arg value="--installationFolder=build/magento" />
<arg value="--dbHost=${DB_HOST}" />
<arg value="--dbUser=${DB_USER}" />
<arg value="--dbPass=${DB_PASS}" />
<arg value="--dbName=${DB_NAME}" />
<arg value="--installSampleData=no" />
<arg value="--useDefaultConfigParams=yes" />
<arg value="--baseUrl=http://www.localhost.com" />
</exec>
</target>
</project>

View File

@ -1,2 +1,6 @@
# Properties file for running a build on Travis CI
DB_USER=travis
DB_PASS=
DB_NAME=magento
DB_HOST=127.0.0.1
MAGENTO_VERSION=1.9.0.1