Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
fixes #27
Browse files Browse the repository at this point in the history
  • Loading branch information
prisis committed Aug 2, 2018
1 parent 675011e commit c57721a
Show file tree
Hide file tree
Showing 85 changed files with 392 additions and 392 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
.php_cs.cache

composer.phar
composer.lock

/build/logs
/vendor
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<h1 align="center">Narrowspark Discovery</h1>
<h1 align="center">Narrowspark Automatic</h1>
<p align="center">
<a href="https://github.com/narrowspark/discovery/releases"><img src="https://img.shields.io/packagist/v/narrowspark/discovery.svg?style=flat-square"></a>
<a href="https://github.com/narrowspark/automatic/releases"><img src="https://img.shields.io/packagist/v/narrowspark/automatic.svg?style=flat-square"></a>
<a href="https://php.net/"><img src="https://img.shields.io/badge/php-%5E7.2.0-8892BF.svg?style=flat-square"></a>
<a href="https://codecov.io/gh/narrowspark/discovery"><img src="https://img.shields.io/codecov/c/github/narrowspark/discovery/master.svg?style=flat-square"></a>
<a href="https://codecov.io/gh/narrowspark/automatic"><img src="https://img.shields.io/codecov/c/github/narrowspark/automatic/master.svg?style=flat-square"></a>
<a href="#"><img src="https://img.shields.io/badge/style-level%207-brightgreen.svg?style=flat-square&label=phpstan"></a>
<a href="http://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square"></a>
</p>

Branch Status
------------
[![Travis branch](https://img.shields.io/travis/narrowspark/discovery/master.svg?longCache=false&style=for-the-badge)](https://travis-ci.org/narrowspark/discovery)
[![Appveyor branch](https://img.shields.io/appveyor/ci/narrowspark/discovery/master.svg?longCache=false&style=for-the-badge)](https://ci.appveyor.com/project/narrowspark/discovery/branch/master)
[![Travis branch](https://img.shields.io/travis/narrowspark/automatic/master.svg?longCache=false&style=for-the-badge)](https://travis-ci.org/narrowspark/automatic)
[![Appveyor branch](https://img.shields.io/appveyor/ci/narrowspark/automatic/master.svg?longCache=false&style=for-the-badge)](https://ci.appveyor.com/project/narrowspark/automatic/branch/master)

Installation
-------------

Use [Composer](https://getcomposer.org/) to install this package:

```sh
composer require narrowspark/discovery
composer require narrowspark/automatic
```

Usage
Expand Down
8 changes: 4 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ platform:
- x64
- x86
clone_depth: 1
clone_folder: C:\projects\discovery
clone_folder: C:\projects\automatic

environment:
matrix:
Expand Down Expand Up @@ -31,7 +31,7 @@ cache:
# Cache php install
- C:\tools\php -> .appveyor.yml
# Cache composer
- C:\projects\discovery\vendor -> composer.json
- C:\projects\automatic\vendor -> composer.json
- '%LOCALAPPDATA%\Composer\files -> composer.json'

init:
Expand Down Expand Up @@ -64,7 +64,7 @@ install:
- IF %PHP%==1 echo opcache.enable_cli=1 >> php.ini
- IF %PHP%==1 echo apc.enable_cli=1 >> php.ini
- IF %APPVEYOR_REPO_BRANCH%==master (SET COMPOSER_ROOT_VERSION=dev-master) ELSE (SET COMPOSER_ROOT_VERSION=%APPVEYOR_REPO_BRANCH%.x-dev)
- cd C:\projects\discovery
- cd C:\projects\automatic
- php -r "readfile('https://getcomposer.org/installer');" | php
# Matrix
- php composer.phar global require hirak/prestissimo
Expand All @@ -75,5 +75,5 @@ install:
- appveyor DownloadFile https://cdn.rawgit.com/prisis/43a2a7b137998ac92e24ee4daaa8e296/raw/681b89b8e156750de46558ead661509c468fb9a2/try_catch.sh

test_script:
- cd C:\projects\discovery
- cd C:\projects\automatic
- sh ./build/appveyor/script.sh
6 changes: 3 additions & 3 deletions build/appveyor/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ for f in ./src/*; do
TYPE="$(basename "$f")";

if [[ "$TYPE" = "Common" ]]; then
TESTSUITE="Narrowspark Discovery Common Test Suite";
elif [[ "$TYPE" = "Discovery" ]]; then
TESTSUITE="Narrowspark Discovery Test Suite";
TESTSUITE="Narrowspark Automatic Common Test Suite";
elif [[ "$TYPE" = "Automatic" ]]; then
TESTSUITE="Narrowspark Automatic Test Suite";
fi

echo "";
Expand Down
4 changes: 2 additions & 2 deletions build/travis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

This directory contains the scripts that travis uses to build the project.

Tests on the entire [`narrowspark/discovery`](https://github.com/narrowspark/discovery) repository,
and then sends code coverage reports out to [Codecov](https://codecov.io/github/narrowspark/discovery).
Tests on the entire [`narrowspark/automatic`](https://github.com/narrowspark/automatic) repository,
and then sends code coverage reports out to [Codecov](https://codecov.io/github/narrowspark/automatic).
6 changes: 3 additions & 3 deletions build/travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ if [[ "$PHPUNIT" = true ]]; then
TYPE="$(basename "$f")";

if [[ "$TYPE" = "Common" ]]; then
TESTSUITE="Narrowspark Discovery Common Test Suite";
elif [[ "$TYPE" = "Discovery" ]]; then
TESTSUITE="Narrowspark Discovery Test Suite";
TESTSUITE="Narrowspark Automatic Common Test Suite";
elif [[ "$TYPE" = "Automatic" ]]; then
TESTSUITE="Narrowspark Automatic Test Suite";
fi

try
Expand Down
25 changes: 13 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "narrowspark/discovery",
"name": "narrowspark/automatic",
"type": "composer-plugin",
"description": "Composer plugin for automatic project configuration and creation.",
"description": "Composer plugin for automatically project configuration and creation.",
"keywords": [
"narrowspark",
"composer-plugin",
"viserio",
"discovery"
"discovery",
"automatic"
],
"homepage": "http://github.com/narrowspark/discovery",
"homepage": "http://github.com/narrowspark/automatic",
"license": "MIT",
"authors": [
{
Expand Down Expand Up @@ -40,24 +41,24 @@
"branch-alias": {
"dev-master": "1.0-dev"
},
"class": "Narrowspark\\Discovery\\Discovery"
"class": "Narrowspark\\Automatic\\Automatic"
},
"autoload": {
"psr-4": {
"Narrowspark\\Discovery\\Common\\": "src/Common/",
"Narrowspark\\Discovery\\": "src/Discovery/"
"Narrowspark\\Automatic\\Common\\": "src/Common/",
"Narrowspark\\Automatic\\": "src/Automatic/"
},
"exclude-from-classmap": [
"/tests/"
]
},
"autoload-dev": {
"psr-4": {
"Narrowspark\\Discovery\\Common\\Test\\": "tests/Common/",
"Narrowspark\\Discovery\\Test\\": "tests/Discovery/"
"Narrowspark\\Automatic\\Common\\Test\\": "tests/Common/",
"Narrowspark\\Automatic\\Test\\": "tests/Automatic/"
},
"files": [
"tests/Discovery/TmpDirMock.php"
"tests/Automatic/TmpDirMock.php"
]
},
"minimum-stability": "dev",
Expand All @@ -69,7 +70,7 @@
"test": "phpunit"
},
"support": {
"issues": "https://github.com/narrowspark/discovery/issues",
"source": "https://github.com/narrowspark/discovery"
"issues": "https://github.com/narrowspark/automatic/issues",
"source": "https://github.com/narrowspark/automatic"
}
}
4 changes: 2 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ parameters:
- %currentWorkingDirectory%/src

excludes_analyse:
- %currentWorkingDirectory%/src/Discovery/Prefetcher/CurlDownloader.php
- %currentWorkingDirectory%/src/Automatic/Prefetcher/CurlDownloader.php

ignoreErrors:
# QuestionInstallationManager
Expand All @@ -31,5 +31,5 @@ parameters:
# ParallelDownloader
- '#Call to an undefined static method Composer\\Util\\RemoteFilesystem\:\:getRemoteContents#'
- '#Call to function method_exists\(\) with #'
# Discovery
# Automatic
- '#does not call parent constructor from Composer\\Repository\\ComposerRepository#'
6 changes: 3 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
</php>

<testsuites>
<testsuite name="Narrowspark Discovery Common Test Suite">
<testsuite name="Narrowspark Automatic Common Test Suite">
<directory>./tests/Common/</directory>
</testsuite>

<testsuite name="Narrowspark Discovery Test Suite">
<directory>./tests/Discovery/</directory>
<testsuite name="Narrowspark Automatic Test Suite">
<directory>./tests/Automatic/</directory>
</testsuite>
</testsuites>

Expand Down
Loading

0 comments on commit c57721a

Please sign in to comment.