Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
Move the before scripts to one big before script
Browse files Browse the repository at this point in the history
  • Loading branch information
roderik committed Aug 18, 2013
1 parent 40931e1 commit 2a17555
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 32 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/vendor/
/bin/*
!bin/fullreload
!bin/travis_*
/composer.phar
.idea
web/generated-js
Expand Down
32 changes: 1 addition & 31 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Empty file modified bin/fullreload
100644 → 100755
Empty file.
32 changes: 32 additions & 0 deletions bin/travis_build_before
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2a17555

Please sign in to comment.