Skip to content

Commit 4244f6d

Browse files
committedDec 30, 2021
Bug 1738776: put moz-extensions directory into a volume and mount into the test environment
This commit is the same content as mozilla-conduit#8, but the content is pasted into a new docker-compose service instead of overwriting `test_phab` which is used in CI.
1 parent e88ba42 commit 4244f6d

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed
 

‎docker-compose.yml

+20-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,19 @@ services:
4949
depends_on:
5050
- phabdb
5151

52+
test_phab_local:
53+
build:
54+
context: .
55+
dockerfile: ./Dockerfile
56+
target: test
57+
entrypoint: /app/entrypoint.sh
58+
command: test_phab
59+
environment: *phab_env
60+
depends_on:
61+
- phabdb
62+
volumes:
63+
- phabricator-moz-extensions-local:/app/moz-extensions
64+
5265
phabdb:
5366
image: mysql:5.7
5467
volumes:
@@ -69,4 +82,10 @@ services:
6982
# Volume Containers
7083
volumes:
7184
phabricator-mysql-db:
72-
phabricator-app:
85+
phabricator-app:
86+
phabricator-moz-extensions-local:
87+
driver: local
88+
driver_opts:
89+
type: none
90+
device: '$PWD/moz-extensions'
91+
o: bind

‎tasks.py

+6
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ def buildtest(ctx):
5050
ctx.run("docker-compose build test_phab")
5151

5252

53+
@task
54+
def buildtestlocal(ctx):
55+
"""Test phabricator extensions."""
56+
ctx.run("docker-compose build test_phab_local")
57+
58+
5359
@task
5460
def test(ctx):
5561
"""Test phabricator extensions."""

0 commit comments

Comments
 (0)
Failed to load comments.