-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improved docker test environment (#153)
* Test environment enhancement - @osteensco
- Loading branch information
Showing
11 changed files
with
9,813 additions
and
9,368 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
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# run from root dir | ||
services: | ||
test: | ||
build: | ||
context: ../.. | ||
dockerfile: test_env/all/Dockerfile | ||
container_name: sugardb_test_env_all | ||
volumes: | ||
- ../../coverage/coverage.out:/testspace/coverage/coverage.out | ||
stdin_open: true | ||
tty: true | ||
|
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# run docker-compose from root dir | ||
FROM golang:latest | ||
|
||
WORKDIR /testspace | ||
|
||
COPY . ./ | ||
|
||
CMD ["/bin/bash"] |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# run from root dir | ||
services: | ||
projenv: | ||
build: | ||
context: ../.. | ||
dockerfile: test_env/run/Dockerfile | ||
container_name: sugardb_test_env_run | ||
stdin_open: true | ||
tty: true | ||
|
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# run docker-compose from root dir | ||
FROM golang:latest | ||
|
||
WORKDIR /testspace | ||
|
||
COPY . ./ | ||
|
||
CMD make test; |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# run from root dir | ||
services: | ||
test: | ||
build: | ||
context: ../.. | ||
dockerfile: test_env/test/Dockerfile | ||
container_name: sugardb_test_env_test | ||
volumes: | ||
- ../../coverage/coverage.out:/testspace/coverage/coverage.out | ||
stdin_open: true | ||
tty: true | ||
|
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# run docker-compose from root dir | ||
FROM golang:latest | ||
|
||
WORKDIR /testspace | ||
|
||
COPY . ./ | ||
|
||
CMD make test-race; |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# run from root dir | ||
services: | ||
test: | ||
build: | ||
context: ../.. | ||
dockerfile: test_env/test_race/Dockerfile | ||
container_name: sugardb_test_env_test_race | ||
volumes: | ||
- ../../coverage/coverage.out:/testspace/coverage/coverage.out | ||
stdin_open: true | ||
tty: true | ||
|
This file was deleted.
Oops, something went wrong.