From 2a175558179aa96fbd6eed8ea2cd7933ac35d422 Mon Sep 17 00:00:00 2001 From: Roderik van der Veer Date: Sun, 18 Aug 2013 18:53:38 +0200 Subject: [PATCH] Move the before scripts to one big before script --- .gitignore | 1 + .travis.yml | 32 +------------------------------- README.md | 2 +- bin/fullreload | 0 bin/travis_build_before | 32 ++++++++++++++++++++++++++++++++ 5 files changed, 35 insertions(+), 32 deletions(-) mode change 100644 => 100755 bin/fullreload create mode 100755 bin/travis_build_before diff --git a/.gitignore b/.gitignore index e40c677f2..d9f8685fa 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ /vendor/ /bin/* !bin/fullreload +!bin/travis_* /composer.phar .idea web/generated-js diff --git a/.travis.yml b/.travis.yml index 32ff88da8..dba14fa92 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,37 +3,7 @@ language: php php: - 5.4 -before_script: - - ulimit -n 10000 - - sh -c 'if [ $(php -r "echo PHP_MINOR_VERSION;") -le 4 ]; then echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;' - - echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini - - gem install sass - - COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev --no-interaction install - - mysql -e 'create database kunstmaanbundles;' - - chmod -R 777 app/cache/ app/logs/ - - app/console kuma:generate:bundle --namespace="MyProject\\WebsiteBundle" --no-interaction --dir=src --env=test - - app/console kuma:generate:default-site --namespace="MyProject\\WebsiteBundle" --prefix="myproject_" --no-interaction --env=test - - app/console kuma:generate:admin-tests --namespace="MyProject\\WebsiteBundle" --env=test - - app/console kuma:generate:article --namespace="MyProject\\WebsiteBundle" --entity=News --prefix="myproject_" --dummydata --env=test - - npm install -g bower - - npm install -g grunt - - bower install - - npm install - - grunt build - - app/console --force --no-interaction doctrine:schema:drop --env=test - - app/console --no-interaction doctrine:schema:create --env=test - - app/console --no-interaction doctrine:fixtures:load --env=test - - app/console --no-interaction assets:install web --env=test - - app/console --no-interaction assetic:dump --env=test - - app/console --no-interaction cache:clear --env=test - - app/console --no-interaction cache:warmup --env=test - - chmod -R 777 app/cache/ app/logs/ - - "app/console server:run &" - - "sh -e /etc/init.d/xvfb start" - - "export DISPLAY=:99.0" - - "wget http://selenium.googlecode.com/files/selenium-server-standalone-2.31.0.jar" - - "java -jar selenium-server-standalone-2.31.0.jar > /dev/null &" - - sleep 5 +before_script: bin/travis_build_before script: - phpunit -c app diff --git a/README.md b/README.md index f093fab0f..8b0fd3b8c 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Then, use the `create-project` command to generate a new Symfony application: php composer.phar create-project kunstmaan/bundles-standard-edition path/to/install -Composer will install Symfony and all its dependencies under the `path/to/install` directory. +Composer will install the Kunstmaan Bundles CMS and all its dependencies under the `path/to/install` directory. 2) Checking your System Configuration diff --git a/bin/fullreload b/bin/fullreload old mode 100644 new mode 100755 diff --git a/bin/travis_build_before b/bin/travis_build_before new file mode 100755 index 000000000..a0eee1c70 --- /dev/null +++ b/bin/travis_build_before @@ -0,0 +1,32 @@ +#!/bin/bash + +ulimit -n 10000 +sh -c 'if [ $(php -r "echo PHP_MINOR_VERSION;") -le 4 ]; then echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;' +echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini +gem install sass +COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev --no-interaction install +mysql -e 'create database kunstmaanbundles;' +chmod -R 777 app/cache/ app/logs/ +app/console kuma:generate:bundle --namespace="MyProject\\WebsiteBundle" --no-interaction --dir=src --env=test +app/console kuma:generate:default-site --namespace="MyProject\\WebsiteBundle" --prefix="myproject_" --no-interaction --env=test +app/console kuma:generate:admin-tests --namespace="MyProject\\WebsiteBundle" --env=test +app/console kuma:generate:article --namespace="MyProject\\WebsiteBundle" --entity=News --prefix="myproject_" --dummydata --env=test +npm install -g bower +npm install -g grunt +bower install +npm install +grunt build +app/console --force --no-interaction doctrine:schema:drop --env=test +app/console --no-interaction doctrine:schema:create --env=test +app/console --no-interaction doctrine:fixtures:load --env=test +app/console --no-interaction assets:install web --env=test +app/console --no-interaction assetic:dump --env=test +app/console --no-interaction cache:clear --env=test +app/console --no-interaction cache:warmup --env=test +chmod -R 777 app/cache/ app/logs/ +app/console server:run & +sh -e /etc/init.d/xvfb start +export DISPLAY=:99.0 +wget http://selenium.googlecode.com/files/selenium-server-standalone-2.31.0.jar +java -jar selenium-server-standalone-2.31.0.jar > /dev/null & +sleep 5