Skip to content

Commit

Permalink
Merge pull request #5 from bluzphp/develop
Browse files Browse the repository at this point in the history
Updated travis configuration - migrated to bluzman
  • Loading branch information
Anton authored Apr 10, 2017
2 parents 550a016 + 06aab6c commit 3db8e78
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,30 @@ language: php
php:
- 7.0
- 7.1
env:
- BLUZ_MODULE=media
before_install:
- phpenv config-rm xdebug.ini
install:
# Composer
- composer self-update
- composer create-project bluzphp/skeleton --stability=dev
# Require current module
- cd skeleton
- composer require bluzphp/module-$BLUZ_MODULE:dev-$TRAVIS_BRANCH
before_script:
# Database
- mysql -e 'CREATE DATABASE bluz;'
- cd skeleton
# Require current module
- composer require bluzphp/module-media:dev-master
# Migrations
- vendor/bin/phinx migrate -e default
- vendor/bin/phinx seed:run
before_script:
# Codeception
- wget http://codeception.com/codecept.phar
- php vendor/bin/bluzman db:migrate
- php vendor/bin/bluzman db:seed:run
script:
# Code style
# Check code style
- php vendor/bin/phpcs ./application --standard=PSR1,PSR2 --encoding=utf-8 --ignore=./application/_loader.php
# WebServer run
- nohup bash -c "php -S 127.0.0.1:8000 -t ./public/ ./public/routing.php 2>&1 &" && sleep 1; cat nohup.out
# CodeCeption
- php codecept.phar run -g module-media
# Run built-in web-server
- php vendor/bin/bluzman server:start --host 127.0.0.1 -b
# Run CodeCeption tests
- php vendor/bin/bluzman test module-$BLUZ_MODULE
notifications:
email: false
webhooks:
Expand Down

0 comments on commit 3db8e78

Please sign in to comment.