Skip to content

Commit 349c11e

Browse files
author
Anton
authored
Merge pull request #2 from bluzphp/develop
Updated travis configuration - migrated to bluzman
2 parents f69e621 + 7853933 commit 349c11e

1 file changed

Lines changed: 15 additions & 14 deletions

File tree

.travis.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,30 @@ language: php
22
php:
33
- 7.0
44
- 7.1
5+
env:
6+
- BLUZ_MODULE=auth
7+
before_install:
8+
- phpenv config-rm xdebug.ini
59
install:
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
2122
script:
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
2829
notifications:
2930
email: false
3031
webhooks:

0 commit comments

Comments
 (0)