Skip to content

Commit

Permalink
Migrate to composer-plugin v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Shevchuk authored and Anton Shevchuk committed Apr 4, 2017
1 parent c3a6287 commit f69e621
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 22 deletions.
22 changes: 8 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,28 @@ php:
- 7.0
- 7.1
install:
# ImageMagick
#- printf "\n" | pecl install imagick
# Composer
- rm -rf ./*
- composer self-update
- composer create-project bluzphp/skeleton --stability=dev
# Database
- mysql -e 'CREATE DATABASE bluz;'
- cd skeleton
- vendor/bin/phinx migrate -e default
# Require current module
- composer require bluzphp/module-auth:dev-master
# Newman
- npm install -g newman@1
# Migrations
- vendor/bin/phinx migrate -e default
- vendor/bin/phinx seed:run
before_script:
# Codeception
- wget http://codeception.com/codecept.phar
script:
- mkdir .reports
# Code style
- php vendor/bin/phpcs ./application --standard=PSR1,PSR2 --encoding=utf-8 --ignore=./application/_loader.php
# PHPUnit tests
- php vendor/bin/phpunit --configuration ./phpunit.xml.dist --coverage-clover=.reports/clover.xml
# WebServer run
- nohup bash -c "php -S 127.0.0.1:8000 -t ./public/ ./public/routing.php 2>&1 &" && sleep 1; cat nohup.out
# Newman run
- newman -k -c tests/postman/collection.json -e tests/postman/environment.json -x -t .reports/newman.xml -O .reports/newman.log
after_script:
- php vendor/bin/coveralls -v
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover .reports/clover.xml
# CodeCeption
- php codecept.phar run -g module-auth
notifications:
email: false
webhooks:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 1 addition & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
"license": "MIT",
"description": "bluz auth module",
"require": {
"bluzphp/composer-plugin": "~1.0"
},
"extra": {
"bluz": {
"module_name": "auth"
}
"bluzphp/composer-plugin": "~2.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
use Application\Tests\ControllerTestCase;

/**
* Class AuthProviderTest
* @author yuklia <[email protected]>
* @group module-options
*
* @author yuklia <[email protected]>
* @package Application\Tests\Auth
*/
class AuthProviderTest extends ControllerTestCase
Expand Down

0 comments on commit f69e621

Please sign in to comment.