Skip to content

Commit d6b62d8

Browse files
committed
fix ci scripts: check for docker -t
1 parent 905fd27 commit d6b62d8

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.run.docker.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,19 @@ export DOCKER_IMG=redun_python_test:redun_python_test
44
export DOCKER_CONTAINER_NAME=redun_python_test
55

66
docker build . --tag $DOCKER_IMG >/dev/null
7+
docker-compose up -d
78

89
( docker rm -f $DOCKER_CONTAINER_NAME || true ) 2>&1 >/dev/null
910

11+
if [ -t 0 ]; then
12+
TERM="-i -t"
13+
else
14+
TERM="-i "
15+
fi
16+
1017
docker run \
1118
-u "$(id -u):$(id -g)" \
12-
-it \
19+
$TERM \
1320
--rm \
1421
--name $DOCKER_CONTAINER_NAME \
1522
-e PGUSER=postgres -e PGPASSWORD=postgres \

docs/source/developing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tocpdeth: 3
99
Run `./pytest.sh` with the arguments that you would pass to `pytest`, for example:
1010

1111
```
12-
./pytest.sh -k static
12+
./pytest.sh -k static --pdb
1313
```
1414

1515
The lints also have their own shortcut: `./lint.sh`

0 commit comments

Comments
 (0)