Skip to content

Commit

Permalink
No bug - Enable running only changed frontend tests. (mozilla#1183)
Browse files Browse the repository at this point in the history
This requires the container to have git, and the local .git folder. With those, running tests with jest automatically only runs the tests that have changed since the last commit.
  • Loading branch information
adngdb authored Jan 31, 2019
1 parent 9cafb4d commit f3fcf08
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
**/*.pyc
__pycache__
.cache
venv
assets
node_modules
static
venv
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ services:
- ./frontend/src:/app/frontend/src
- ./frontend/public:/app/frontend/public
- ./tests:/app/tests
# git is used to run only tests that changed
- ./.git:/app/.git

postgresql:
build:
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM python:2.7.13-slim

RUN apt-get update && apt-get -y --no-install-recommends install \
ca-certificates \
curl
curl \
git

RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
RUN curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.10/gosu-$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
Expand Down

0 comments on commit f3fcf08

Please sign in to comment.