1- # see http://about.travis-ci.org/docs/user/languages/php/ for more hints
21language : php
3-
4- # list any PHP version you want to test against
52php :
6- - 5.4
7- - 5.5
8- - 5.6
9-
10- # optionally specify a list of environments, for example to test different RDBMS
3+ - 5.4
4+ - 5.5
5+ - 5.6
116env :
12- - DB=mysql
13-
14- # execute any number of scripts before the test run, custom env's are available as variables
7+ - DB=mysql
158before_script :
16- - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS snipeit_laravel;" -utravis; fi
17- - curl -s http://getcomposer.org/installer | php
18- - cp app/config/production/database.example.php app/config/database.php
19- - cp app/config/production/mail.example.php app/config/mail.php
20- - php composer.phar self-update
21- - php composer.phar install --prefer-source --no-interaction --dev
22- - php artisan key:generate
23- - php artisan migrate:install
24- - php artisan migrate --package cartalyst/sentry
25- - php artisan migrate
26- - php artisan db:seed
27-
28- # omitting "script:" will default to phpunit
29- # use the $DB env variable to determine the phpunit.xml to use
9+ - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS snipeit_laravel;"
10+ -utravis; fi
11+ - curl -s http://getcomposer.org/installer | php
12+ - cp app/config/production/database.example.php app/config/database.php
13+ - cp app/config/production/mail.example.php app/config/mail.php
14+ - php composer.phar self-update
15+ - php composer.phar install --prefer-source --no-interaction --dev
16+ - php artisan key:generate
17+ - php artisan migrate:install
18+ - php artisan migrate --package cartalyst/sentry
19+ - php artisan migrate
20+ - php artisan db:seed
3021script : phpunit
31-
32- # configure notifications (email, IRC, campfire etc)
3322notifications :
34- slack : snipe:F6LWbfP6vhr3aRBoeARFG6Ti
23+ slack :
24+ secure : vv9we1RxB9RsrMbomSdq6D7vz/okobw87pEkgIZjB+hj1QpQ2by90gsPsOa+NgsJEFaEP7e4KlT6SH8kK+zhbmuKaUd3d1//XdcancE22LZXi6tkiB5yuR/Jhhb1LLDqyGJTB4D92hMnnCPiUjpxNA3r437ttNeYRdYIEEP3drA=
0 commit comments