-
Notifications
You must be signed in to change notification settings - Fork 68
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
5 changed files
with
15 additions
and
11 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 |
---|---|---|
@@ -1,14 +1,17 @@ | ||
.PHONY: test-pg test-mysql | ||
.PHONY: test-sqlite test-pg test-mysql | ||
|
||
test-sqlite: | ||
appraisal rake test | ||
|
||
test-pg: | ||
docker compose up -d pg | ||
sleep 10 # give some time for the service to start | ||
DATABASE_URL=postgres://with_advisory:with_advisory_pass@localhost/with_advisory_lock_test appraisal activerecord-7.1 rake test | ||
DATABASE_URL=postgres://with_advisory:with_advisory_pass@localhost/with_advisory_lock_test appraisal rake test | ||
|
||
test-mysql: | ||
docker compose up -d mysql | ||
sleep 10 # give some time for the service to start | ||
DATABASE_URL=mysql2://with_advisory:[email protected]:3306/with_advisory_lock_test appraisal activerecord-7.1 rake test | ||
DATABASE_URL=mysql2://with_advisory:[email protected]:3306/with_advisory_lock_test appraisal rake test | ||
|
||
|
||
test: test-pg test-mysql | ||
test: test-sqlite test-pg test-mysql |
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 |
---|---|---|
|
@@ -17,4 +17,4 @@ services: | |
MYSQL_RANDOM_ROOT_PASSWORD: "yes" | ||
MYSQL_ROOT_HOST: '%' | ||
ports: | ||
- "3306:3306" | ||
- "3306:3306" |
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