Search

Friends

Atomspheric CO2 (PPM)

Archives

Blather

Uptime verified by Wormly.com

27 June 2013

Chosen with Twitter Bootstrap

Combining Chosen and Bootstrap needs some tweaks to get the widgets to match.

.chzn-container-single .chzn-single {
  padding: 3px 6px;
}

.chzn-container-single .chzn-single div b {
  background-position-y: 6px;
}

.chzn-container-active.chzn-with-drop .chzn-single div b {
  background-position-y: 6px;
}

.chzn-container-single .chzn-single abbr {
  height: 15px;
  background-position-y: 5px;
}

.chzn-container-single .chzn-single abbr:hover {
  background-position-y: 5px;
}

.control-group .controls {
  min-height: 40px;
}

7 June 2013

Setting up CircleCI with Symfony 2.3

I've just set up my latest Symfony project on CircleCI and it's working really well. CircleCI is very good, and the staff are amazingly helpful (even though I haven't given them any money yet). I spent a morning trying to set up Travis, without any luck. Seems to be some issue with private repos owned by organisations.

If you're trying to do your parameters the new Symfony 2.3 way, it takes a little extra work. And if your tests need the database, it takes a tiny bit more.

circle.yml

machine:
  php:
    version: 5.4.21
dependencies:
  override:
    - composer install --prefer-source --no-interaction
    - cp app/config/parameters_test.circle.yml app/config/parameters_test.yml
    - app/console doctrine:database:drop --env=test --no-interaction --force
    - app/console doctrine:database:create --env=test --no-interaction
    - app/console doctrine:migrations:migrate --env=test --no-interaction

app/config/parameters_test.circle.yml

parameters:
  database_name: circle_test
  database_user: ubuntu
  database_password: null

Using environment variables didn't work that well for me, because I've got a local testing environment as well. So keeping two versions (local and CircleCI) of the testing parameters file seemed to work better. I'll still probably use environment variables for production, although that would be something else that didn't get tested.

0.126 seconds