language: php
php:
  - "5.4"
before_script:
  - echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - echo "short_open_tag = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - echo "[production]" > tests/config.local.ini
  - echo "server.domain = localhost:8080" >> tests/config.local.ini
  - echo 'server.baseUrl = ""' >> tests/config.local.ini
  - chmod a+w cache/*
  - composer self-update
  - composer install
services:
  - memcached
script: "./vendor/bin/phpunit"
notificaitons:
  irc: "irc.freenode.org#kwf"

language: php
php:
  - "5.4"
before_script:
  - echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - echo "short_open_tag = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - echo "[production]" > tests/config.local.ini
  - echo "server.domain = localhost:8080" >> tests/config.local.ini
  - echo 'server.baseUrl = ""' >> tests/config.local.ini
  - chmod a+w cache/*
  - composer self-update

  # see https://getcomposer.org/doc/articles/troubleshooting.md#package-not-found-on-travis-ci-org
  - COMPOSER_ROOT_VERSION=dev-master composer install
services:
  - memcached
script: "./vendor/bin/phpunit"
notificaitons:
  irc: "irc.freenode.org#kwf"

Revert "don't set version to dev-master, this workaround is not required anymore"
Revert "don't set version to dev-master, this workaround is not required anymore"

This reverts commit 86fd3d59c02111768327c8320325fd81cb8cb6c0.
