Skip to content

Commit

Permalink
zero downtime deployment
Browse files Browse the repository at this point in the history
Remote ssh helper
major refactor
testing tools
  • Loading branch information
braceyourself committed Jul 11, 2024
1 parent 03f5d27 commit 445d90e
Show file tree
Hide file tree
Showing 21 changed files with 700 additions and 255 deletions.
9 changes: 9 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"Braceyourself\\Compose\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"authors": [
{
"name": "braceyourself",
Expand All @@ -26,5 +31,9 @@
"Braceyourself\\Compose\\ComposeServiceProvider"
]
}
},
"require-dev": {
"phpunit/phpunit": "^11.2",
"orchestra/testbench": "^9.1"
}
}
7 changes: 4 additions & 3 deletions config/compose.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
],
'nginx' => [],
'npm' => [],
'mysql' => [
'database' => [
'expose_on_port' => env('COMPOSE_DB_PORT'),
],
'redis' => [
Expand All @@ -64,11 +64,12 @@
],

'deploy' => [
'docker_hub_username' => env('DOCKER_HUB_USERNAME'),
'docker_hub_password' => env('DOCKER_HUB_PASSWORD'),

'host' => env('COMPOSE_DEPLOY_HOST'),
'user' => env('COMPOSE_DEPLOY_USER'),
'path' => env('COMPOSE_DEPLOY_PATH'),
'password' => env('COMPOSE_DEPLOY_PASSWORD'),
'docker_hub_username' => env('DOCKER_HUB_USERNAME'),
'docker_hub_password' => env('DOCKER_HUB_PASSWORD'),
]
];
31 changes: 31 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="vendor/autoload.php"
backupGlobals="false"
colors="true"
processIsolation="false"
stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false"
>
<coverage/>
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
<testsuite name="Feature">
<directory suffix="Test.php">./tests/Feature</directory>
</testsuite>
</testsuites>
<php>
<env name="DB_CONNECTION" value="testing"/>
<env name="APP_KEY" value="base64:2fl+Ktvkfl+Fuz4Qp/A75G2RTiWVA/ZoKZvp6fiiM10="/>
</php>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
</phpunit>
Loading

0 comments on commit 445d90e

Please sign in to comment.