Start PostgreSQL and set BROWSER for integration tests

This commit is contained in:
Ana Gelez 2020-08-10 11:15:02 +02:00
parent 3c6d5de314
commit 3de6b46465

View File

@ -139,9 +139,19 @@ local Unit(db) = cachedPipeline(
// PIPELINE 4: runs integration tests
// It installs a local instance an run integration test with Python scripts
// that use Selenium (located in scripts/browser_test).
local Integration(db) = cachedPipeline(
local Integration(db) = {
} + basePipeline(
"integration-" + db,
[
restoreCache,
startDb(db),
{
name: "integration-" + db,
image: plumeEnv,
environment: {
BROWSER: "firefox",
},
commands: [
// Install the front-end
"cargo web deploy -p plume-front",
// Install the server
@ -152,6 +162,9 @@ local Integration(db) = cachedPipeline(
+ db + '" --force --path plume-cli',
// Run the tests
"./script/run_browser_test.sh"
],
},
saveCache,
]
);