-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
414 additions
and
442 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,5 +15,5 @@ jobs: | |
|
||
- name: Run test | ||
run: | | ||
make ci | ||
make test | ||
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
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,30 +1,18 @@ | ||
|
||
.PHONY: build | ||
build: | ||
docker compose build | ||
docker-compose -f docker-compose.yml build web | ||
|
||
.PHONY: up | ||
up: | ||
docker compose up | ||
make build | ||
docker-compose -f docker-compose.yml up -d web | ||
|
||
.PHONY: down | ||
down: | ||
docker compose down | ||
docker-compose -f docker-compose.yml down | ||
|
||
.PHONY: test | ||
test: TEST_TARGET = t | ||
test: | ||
docker compose exec app prove -lrv $(TEST_TARGET) | ||
|
||
.PHONY: ci | ||
ci: | ||
docker compose up -d | ||
make setup-data | ||
make test | ||
|
||
# 翻訳データのセットアップ | ||
# TODO: 翻訳データのセットアップは他にもあるので、全部ひとまとめにできると良さそう | ||
.PHONY: setup-data | ||
setup-data: | ||
docker compose exec app perl script/update.pl | ||
|
||
docker-compose -f docker-compose.yml build test | ||
docker-compose -f docker-compose.yml run test prove -Ilib -r -v t |
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
Oops, something went wrong.