Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from synergycp/master
Browse files Browse the repository at this point in the history
Merge changes
radwebhosting authored Jul 9, 2022
2 parents d877baf + 568f072 commit 26c138b
Showing 29 changed files with 1,917 additions and 559 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/vendor
/.idea/workspace.xml
.composer
.phpunit.result.cache
6 changes: 0 additions & 6 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

13 changes: 0 additions & 13 deletions .idea/php.xml

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/synergycpreseller.iml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/vcs.xml

This file was deleted.

11 changes: 11 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Cloning this repo

Make sure to clone recursively to get the submodules.

## Running the tests

Install docker, then run this from the root directory of this repo.

```bash
./bin/run-tests-in-docker.sh
```
2 changes: 1 addition & 1 deletion Scp
Submodule Scp updated from f4bf8f to b40932
3 changes: 3 additions & 0 deletions bin/docker-exec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

docker run --rm -v $(pwd)/:/root -w /root epcallan/php7-testing-phpunit:7.2-phpunit7 "$@"
5 changes: 4 additions & 1 deletion bin/export.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env bash

bin/docker-exec rm -rf vendor Scp/vendor || exit $?
bin/docker-exec composer install --no-dev || exit $?
bin/docker-exec bash -c "cd Scp; composer install --no-dev" || exit $?
OUTFILE=/scp/install.synergycp.com/bm/integration/whmcs/synergycpreseller.zip
zip -r "$OUTFILE" . -x ".git*" ".idea/*" "bin/*"
exec zip -r "$OUTFILE" . -x ".git*" ".idea/*" "bin/*" ".composer/*" "Scp/.composer/*"
6 changes: 6 additions & 0 deletions bin/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env sh

composer install
cd Scp
composer install
cd ..
3 changes: 3 additions & 0 deletions bin/run-tests-in-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

./bin/docker-exec bin/setup-and-run-tests.sh
4 changes: 4 additions & 0 deletions bin/setup-and-run-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh

./bin/install.sh || exit $?
./bin/test.sh || exit $?
3 changes: 3 additions & 0 deletions bin/sync.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

scp -r * scp-whmcs:public_html/modules/servers/synergycpreseller/
3 changes: 3 additions & 0 deletions bin/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

./vendor/bin/phpunit
7 changes: 2 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@
"require": {
},
"require-dev": {
"phpunit/phpunit": "^8.0"
},
"repositories": [],
"autoload": {
@@ -18,12 +19,8 @@
"Scp\\WhmcsReseller\\": "src"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"test": "bin/test.sh",
"post-install-cmd": [
],
"post-update-cmd": [
Loading

0 comments on commit 26c138b

Please sign in to comment.