зеркало из https://github.com/mozilla/pontoon.git
No bug - Enable running only changed frontend tests. (#1183)
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.
This commit is contained in:
Родитель
9cafb4daa9
Коммит
f3fcf088b7
|
@ -3,5 +3,7 @@
|
|||
**/*.pyc
|
||||
__pycache__
|
||||
.cache
|
||||
venv
|
||||
assets
|
||||
node_modules
|
||||
static
|
||||
venv
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 }')" \
|
||||
|
|
Загрузка…
Ссылка в новой задаче