Browse Source

Fixating now() for all tests, adding composer to travis

Jose Lorenzo Rodriguez 12 years ago
parent
commit
d1f7e095eb
2 changed files with 4 additions and 0 deletions
  1. 2 0
      .travis.yml
  2. 2 0
      tests/bootstrap.php

+ 2 - 0
.travis.yml

@@ -25,6 +25,8 @@ matrix:
       env: HHVM=1 DB=mysql db_class='Cake\Database\Driver\Mysql' db_dsn='mysql:host=0.0.0.0;dbname=cakephp_test' db_database='cakephp_test' db_login='travis' db_password=''
 
 before_script:
+  - composer self-update
+  - composer install --prefer-source --no-interaction --dev
   - sh -c "if [ '$PHPCS' != '1' ]; then sudo locale-gen de_DE; fi"
   - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"
   - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test2;'; fi"

+ 2 - 0
tests/bootstrap.php

@@ -134,3 +134,5 @@ Log::config([
 
 // Initialize the empty language.
 I18n::translate('empty');
+
+Carbon\Carbon::setTestNow(Carbon\Carbon::now());