Add a shared volume for WebDriver's socket
This commit is contained in:
parent
f2203710cb
commit
06c625c686
@ -141,6 +141,9 @@ local Unit(db) = cachedPipeline(
|
|||||||
// It installs a local instance an run integration test with Python scripts
|
// It installs a local instance an run integration test with Python scripts
|
||||||
// that use Selenium (located in scripts/browser_test).
|
// that use Selenium (located in scripts/browser_test).
|
||||||
local Integration(db) = {
|
local Integration(db) = {
|
||||||
|
volumes: [
|
||||||
|
name: 'webdriver-socket', temp: {},
|
||||||
|
]
|
||||||
} + basePipeline(
|
} + basePipeline(
|
||||||
"integration-" + db,
|
"integration-" + db,
|
||||||
[
|
[
|
||||||
@ -150,6 +153,9 @@ local Integration(db) = {
|
|||||||
name: 'selenium',
|
name: 'selenium',
|
||||||
image: 'elgalu/selenium:latest',
|
image: 'elgalu/selenium:latest',
|
||||||
detach: true,
|
detach: true,
|
||||||
|
volumes: [
|
||||||
|
{ name: 'webdriver-socket', path: '/wd' },
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "integration-" + db,
|
name: "integration-" + db,
|
||||||
@ -158,6 +164,9 @@ local Integration(db) = {
|
|||||||
BROWSER: "firefox",
|
BROWSER: "firefox",
|
||||||
DATABASE_URL: if db == "postgres" then "postgres://plume:password@start-db/plume" else "plume.db",
|
DATABASE_URL: if db == "postgres" then "postgres://plume:password@start-db/plume" else "plume.db",
|
||||||
},
|
},
|
||||||
|
volumes: [
|
||||||
|
{ name: 'webdriver-socket', path: '/wd' },
|
||||||
|
],
|
||||||
commands: [
|
commands: [
|
||||||
// Install the front-end
|
// Install the front-end
|
||||||
"cargo web deploy -p plume-front",
|
"cargo web deploy -p plume-front",
|
||||||
|
Loading…
Reference in New Issue
Block a user