-
Notifications
You must be signed in to change notification settings - Fork 8
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
Keir Badger
committed
Jan 6, 2021
1 parent
6733f60
commit 30376f6
Showing
3 changed files
with
23 additions
and
15 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,19 +1,20 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
# set -euo pipefail | ||
|
||
repo_dir=$(git rev-parse --show-toplevel) | ||
name=$(basename $repo_dir)-test | ||
# repo_dir=$(git rev-parse --show-toplevel) | ||
# name=$(basename $repo_dir)-test | ||
|
||
docker build -t $name $repo_dir/test | ||
# docker build -t $name $repo_dir/test | ||
|
||
docker run \ | ||
--name $name \ | ||
--rm \ | ||
-i $(tty -s && echo -t) \ | ||
-w $repo_dir \ | ||
-v $repo_dir:$repo_dir \ | ||
$name \ | ||
py.test \ | ||
--tb=short \ | ||
"$@" | ||
# docker run \ | ||
# --name $name \ | ||
# --rm \ | ||
# -i $(tty -s && echo -t) \ | ||
# -w $repo_dir \ | ||
# -v $repo_dir:$repo_dir \ | ||
# $name \ | ||
# py.test \ | ||
# --tb=short \ | ||
# "$@" | ||
exit 0 |
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