diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..8fb2eb589b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,32 @@ +# see http://about.travis-ci.org/docs/user/languages/php/ for more hints +language: php + +# list any PHP version you want to test against +php: + - 5.4 + - 5.5 + - 5.6 + +# optionally specify a list of environments, for example to test different RDBMS +env: + - DB=mysql + +# execute any number of scripts before the test run, custom env's are available as variables +before_script: + - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS snipeit_laravel;" -utravis; fi + - curl -s http://getcomposer.org/installer | php + - php composer.phar self-update + - php composer.phar install --prefer-source --no-interaction --dev + - php artisan key:generate + - php artisan migrate:install + - php artisan migrate --package cartalyst/sentry + - php artisan migrate + - php artisan db:seed + +# omitting "script:" will default to phpunit +# use the $DB env variable to determine the phpunit.xml to use +script: phpunit + +# configure notifications (email, IRC, campfire etc) +notifications: + slack: snipe:F6LWbfP6vhr3aRBoeARFG6Ti \ No newline at end of file diff --git a/travis.yml b/travis.yml deleted file mode 100644 index 352638a3e2..0000000000 --- a/travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: php - -php: - - 5.3 - - 5.4 - - 5.5 - -before_script: - - curl -s http://getcomposer.org/installer | php - - php composer.phar install --prefer-source --no-interaction --dev - -script: phpunit \ No newline at end of file