Skip to content

Commit f69e621

Browse files
Anton ShevchukAnton Shevchuk
Anton Shevchuk
authored and
Anton Shevchuk
committed
Migrate to composer-plugin v2.0
1 parent c3a6287 commit f69e621

File tree

7 files changed

+12
-22
lines changed

7 files changed

+12
-22
lines changed

.travis.yml

+8-14
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,28 @@ php:
33
- 7.0
44
- 7.1
55
install:
6-
# ImageMagick
7-
#- printf "\n" | pecl install imagick
86
# Composer
97
- rm -rf ./*
108
- composer self-update
119
- composer create-project bluzphp/skeleton --stability=dev
1210
# Database
1311
- mysql -e 'CREATE DATABASE bluz;'
1412
- cd skeleton
15-
- vendor/bin/phinx migrate -e default
1613
# Require current module
1714
- composer require bluzphp/module-auth:dev-master
18-
# Newman
19-
- npm install -g newman@1
15+
# 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
2021
script:
21-
- mkdir .reports
2222
# Code style
2323
- php vendor/bin/phpcs ./application --standard=PSR1,PSR2 --encoding=utf-8 --ignore=./application/_loader.php
24-
# PHPUnit tests
25-
- php vendor/bin/phpunit --configuration ./phpunit.xml.dist --coverage-clover=.reports/clover.xml
2624
# WebServer run
2725
- nohup bash -c "php -S 127.0.0.1:8000 -t ./public/ ./public/routing.php 2>&1 &" && sleep 1; cat nohup.out
28-
# Newman run
29-
- newman -k -c tests/postman/collection.json -e tests/postman/environment.json -x -t .reports/newman.xml -O .reports/newman.log
30-
after_script:
31-
- php vendor/bin/coveralls -v
32-
- wget https://scrutinizer-ci.com/ocular.phar
33-
- php ocular.phar code-coverage:upload --format=php-clover .reports/clover.xml
26+
# CodeCeption
27+
- php codecept.phar run -g module-auth
3428
notifications:
3529
email: false
3630
webhooks:

composer.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
"license": "MIT",
55
"description": "bluz auth module",
66
"require": {
7-
"bluzphp/composer-plugin": "~1.0"
8-
},
9-
"extra": {
10-
"bluz": {
11-
"module_name": "auth"
12-
}
7+
"bluzphp/composer-plugin": "~2.0"
138
}
149
}

tests/models/Auth/AuthProviderTest.php renamed to tests/unit/models/Auth/AuthProviderTest.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
use Application\Tests\ControllerTestCase;
1414

1515
/**
16-
* Class AuthProviderTest
17-
* @author yuklia <[email protected]>
16+
* @group module-options
17+
*
18+
* @author yuklia <[email protected]>
1819
* @package Application\Tests\Auth
1920
*/
2021
class AuthProviderTest extends ControllerTestCase

0 commit comments

Comments
 (0)