-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from silinternational/develop
dependency updates and cleanup
- Loading branch information
Showing
8 changed files
with
1,144 additions
and
459 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 |
---|---|---|
@@ -1,41 +1,41 @@ | ||
start: deps db tables basemodels app | ||
|
||
app: db | ||
docker-compose up -d app cron phpmyadmin | ||
docker compose up -d app cron phpmyadmin | ||
|
||
deps: | ||
docker-compose run --rm cli composer install | ||
docker compose run --rm cli composer install | ||
|
||
depsupdate: | ||
docker-compose run --rm cli bash -c "composer update && composer show -D > versions.txt" | ||
docker compose run --rm cli bash -c "composer update && composer show -D > versions.txt" | ||
|
||
db: | ||
docker-compose up -d db | ||
docker compose up -d db | ||
|
||
tables: db | ||
docker-compose run --rm cli whenavail db 3306 100 ./yii migrate --interactive=0 | ||
docker compose run --rm cli whenavail db 3306 100 ./yii migrate --interactive=0 | ||
|
||
basemodels: tables | ||
docker-compose run --rm cli whenavail db 3306 100 ./rebuildbasemodels.sh | ||
docker compose run --rm cli whenavail db 3306 100 ./rebuildbasemodels.sh | ||
|
||
test: app | ||
make testunit | ||
make testapi | ||
|
||
testunit: | ||
APP_ENV=test docker-compose run --rm app /data/run-tests.sh | ||
APP_ENV=test docker compose run --rm app /data/run-tests.sh | ||
|
||
#TODO: tests api won't run unless the access keys are abc-123, need to change that so test will run out-of-box. | ||
# would be best to have an additional container for testing because I don't think the env vars are being honored on the command line the way we think they are. | ||
testapi: | ||
APP_ENV=test docker-compose run --rm app /data/run-tests-api.sh | ||
APP_ENV=test docker compose run --rm app /data/run-tests-api.sh | ||
|
||
cron: db | ||
docker-compose run --rm cron ./yii send/send-queued-email | ||
docker compose run --rm cron ./yii send/send-queued-email | ||
|
||
clean: | ||
docker-compose kill | ||
docker-compose rm -f | ||
docker compose kill | ||
docker compose rm -f | ||
|
||
psr2: | ||
docker-compose run --rm cli bash -c "vendor/bin/php-cs-fixer fix ." | ||
docker compose run --rm cli bash -c "vendor/bin/php-cs-fixer fix ." |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
version: '2' | ||
services: | ||
db: | ||
image: mariadb:10 | ||
|
Oops, something went wrong.