File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,29 +2,30 @@ language: php
22php :
33 - 7.0
44 - 7.1
5+ env :
6+ - BLUZ_MODULE=auth
7+ before_install :
8+ - phpenv config-rm xdebug.ini
59install :
610 # Composer
7- - rm -rf ./*
811 - composer self-update
912 - composer create-project bluzphp/skeleton --stability=dev
13+ # Require current module
14+ - cd skeleton
15+ - composer require bluzphp/module-$BLUZ_MODULE:dev-$TRAVIS_BRANCH
16+ before_script :
1017 # Database
1118 - mysql -e 'CREATE DATABASE bluz;'
12- - cd skeleton
13- # Require current module
14- - composer require bluzphp/module-auth:dev-master
1519 # Migrations
16- - vendor/bin/phinx migrate -e default
17- - vendor/bin/phinx seed:run
18- before_script :
19- # Codeception
20- - wget http://codeception.com/codecept.phar
20+ - php vendor/bin/bluzman db:migrate
21+ - php vendor/bin/bluzman db:seed:run
2122script :
22- # Code style
23+ # Check code style
2324 - php vendor/bin/phpcs ./application --standard=PSR1,PSR2 --encoding=utf-8 --ignore=./application/_loader.php
24- # WebServer run
25- - nohup bash -c "php -S 127.0.0.1:8000 -t ./public/ ./public/routing.php 2>&1 &" && sleep 1; cat nohup.out
26- # CodeCeption
27- - php codecept.phar run -g module-auth
25+ # Run built-in web-server
26+ - php vendor/bin/bluzman server:start --host 127.0.0.1 -b
27+ # Run CodeCeption tests
28+ - php vendor/bin/bluzman test module-$BLUZ_MODULE
2829notifications :
2930 email : false
3031 webhooks :
You can’t perform that action at this time.
0 commit comments