-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved back installer into the project.
- Loading branch information
1 parent
94a3b25
commit 2a4e6a7
Showing
55 changed files
with
3,812 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# This action is used for Vortex maintenance. It will not be used in the scaffolded project. | ||
name: Vortex - Test installer | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
- 'feature/**' | ||
|
||
jobs: | ||
vortex-test-installer: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php-versions: ['8.1', '8.2', '8.3'] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
|
||
- name: Install dependencies | ||
run: composer install | ||
working-directory: .vortex/installer | ||
|
||
- name: Check coding standards | ||
run: composer lint | ||
working-directory: .vortex/installer | ||
|
||
- name: Run tests | ||
run: XDEBUG_MODE=coverage composer test | ||
working-directory: .vortex/installer | ||
|
||
- name: Upload coverage report as an artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{github.job}}-code-coverage-report-${{ matrix.php-versions }} | ||
path: .vortex/installer/.coverage-html | ||
|
||
- name: Upload coverage report to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
files: .vortex/installer/cobertura.xml | ||
fail_ci_if_error: true | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
# Smoke test for PHAR. | ||
- name: Build PHAR | ||
run: composer build | ||
working-directory: .vortex/installer | ||
|
||
- name: Test PHAR | ||
run: .vortex/installer/build/installer --quiet || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/build | ||
/.coverage-html | ||
/.phpunit.cache | ||
/cobertura.xml | ||
/composer.lock | ||
/vendor | ||
/vendor-bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Vortex installer | ||
|
||
## Maintenance | ||
|
||
composer install | ||
composer lint | ||
composer test | ||
|
||
### Releasing | ||
|
||
The installer is packaged as a PHAR and deployed to https://vortex.drevops.com/install | ||
upon each GitHub release or for every branch to a branch containing the | ||
`release-docs` or `release-installer` in the name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"output": "build/installer", | ||
"banner": [ | ||
"@file", | ||
"Vortex CLI installer.", | ||
"", | ||
"<!-- -->", | ||
"CLI installer for <a href=\"https://github.com/drevops/vortex\">Vortex</a> project.<br/>", | ||
"Run in your terminal:<br/>", | ||
"<code>curl -SsL https://vortex.drevops.com/install > install.php && php install.php</code><br/>", | ||
"More details: <a href=\"https://vortex.drevops.com\">https://vortex.drevops.com</a>", | ||
"<!--" | ||
], | ||
"finder": [ | ||
{ | ||
"in": "./", | ||
"exclude": [ | ||
"tests", | ||
"vendor-bin" | ||
] | ||
} | ||
], | ||
"blacklist": [ | ||
"box.json", | ||
"phpcs.xml", | ||
"phpmd.xml", | ||
"phpstan.neon" | ||
], | ||
"replacements": { | ||
"git-tag-ci": "dev" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"name": "drevops/vortex-installer", | ||
"type": "library", | ||
"description": "Installer for Vortex.", | ||
"license": "GPL-2.0-or-later", | ||
"authors": [ | ||
{ | ||
"name": "Alex Skrypnyk", | ||
"email": "[email protected]", | ||
"homepage": "https://www.drevops.com", | ||
"role": "Maintainer" | ||
} | ||
], | ||
"homepage": "https://github.com/drevops/vortex-installer", | ||
"support": { | ||
"issues": "https://github.com/drevops/vortex-installer/issues", | ||
"source": "https://github.com/drevops/vortex-installer" | ||
}, | ||
"require": { | ||
"php": ">=8.1", | ||
"symfony/console": "^6.3 || ^7" | ||
}, | ||
"require-dev": { | ||
"bamarni/composer-bin-plugin": "^1.8", | ||
"dealerdirect/phpcodesniffer-composer-installer": "^1", | ||
"drupal/coder": "^8.3", | ||
"mikey179/vfsstream": "^1.6", | ||
"opis/closure": "^3.6", | ||
"phpmd/phpmd": "^2.13", | ||
"phpstan/phpstan": "^1.10", | ||
"phpunit/phpunit": "^10", | ||
"rector/rector": "^1.0.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"DrevOps\\Installer\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"DrevOps\\Installer\\Tests\\": "tests/phpunit" | ||
}, | ||
"classmap": [ | ||
"tests/phpunit" | ||
] | ||
}, | ||
"config": { | ||
"sort-packages": true, | ||
"allow-plugins": { | ||
"bamarni/composer-bin-plugin": true, | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
} | ||
}, | ||
"scripts": { | ||
"lint": [ | ||
"phpcs", | ||
"phpstan", | ||
"rector --clear-cache --dry-run" | ||
], | ||
"lint-fix": [ | ||
"rector --clear-cache", | ||
"phpcbf" | ||
], | ||
"test": "if [ \"${XDEBUG_MODE}\" = 'coverage' ]; then phpunit; else phpunit --no-coverage; fi", | ||
"build": [ | ||
"@composer bin box require --dev humbug/box", | ||
"box validate", | ||
"box compile" | ||
] | ||
}, | ||
"bin": [ | ||
"install" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
foreach ([$GLOBALS['_composer_autoload_path'] ?? NULL, __DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php'] as $file) { | ||
if ($file && file_exists($file)) { | ||
require_once $file; | ||
unset($file); | ||
break; | ||
} | ||
} | ||
|
||
require __DIR__ . '/src/app.php'; |
Oops, something went wrong.
2a4e6a7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π Published on https://vortex-docs.netlify.app as production
π Deployed on https://66d44e71694ce52077985a6c--vortex-docs.netlify.app
2a4e6a7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π Deployed on https://66d44efb142c10213c11e2bc--vortex-docs.netlify.app
2a4e6a7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π Deployed on https://66d4502989fa9d1c3b49d6a4--vortex-docs.netlify.app