language: php

php:
  - 5.5
  - 5.6
  - 7.0
  - hhvm

# faster builds on new travis setup not using sudo
sudo: false

# cache vendor dirs
cache:
  directories:
    - $HOME/.composer/cache

install:
  - travis_retry composer self-update && composer --version
  - travis_retry composer global require "fxp/composer-asset-plugin:~1.1.1"
  - travis_retry composer update --dev --prefer-dist --no-interaction
  - export PATH="$(pwd)/vendor/bin:$PATH"
# setup application:
  - |
    sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" config/web.php

before_script:
  - mysql --version
  # initialize databases
  - mysql -e 'CREATE DATABASE yii2_basic_tests;';

script:
  - cd tests
  - php bin/yii migrate --interactive=0
  - codecept build
  - |
      php -S bin/yii serve > /dev/null 2>&1 &
      codecept run
language: php

php:
  - 5.5
  - 5.6
  - 7.0
  - hhvm

# faster builds on new travis setup not using sudo
sudo: false

# cache vendor dirs
cache:
  directories:
    - $HOME/.composer/cache

install:
  - travis_retry composer self-update && composer --version
  - travis_retry composer global require "fxp/composer-asset-plugin:~1.1.1"
  - travis_retry composer update --dev --prefer-dist --no-interaction
  - export PATH="$(pwd)/vendor/bin:$PATH"
# setup application:
  - |
    sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" config/web.php

before_script:
  - mysql --version
  # initialize databases
  - mysql -e 'CREATE DATABASE yii2_basic_tests;';

script:
  - cd tests
  - php bin/yii migrate --interactive=0
  - codecept bootstrap
  - codecept build
  - |
      php -S bin/yii serve > /dev/null 2>&1 &
      codecept run
Add bootstrap command before run test
Add bootstrap command before run test
