Start PostgreSQL and set BROWSER for integration tests
This commit is contained in:
parent
3c6d5de314
commit
3de6b46465
@ -139,19 +139,32 @@ local Unit(db) = cachedPipeline(
|
|||||||
// PIPELINE 4: runs integration tests
|
// PIPELINE 4: runs integration tests
|
||||||
// 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) = cachedPipeline(
|
local Integration(db) = {
|
||||||
|
} + basePipeline(
|
||||||
"integration-" + db,
|
"integration-" + db,
|
||||||
[
|
[
|
||||||
// Install the front-end
|
restoreCache,
|
||||||
"cargo web deploy -p plume-front",
|
startDb(db),
|
||||||
// Install the server
|
{
|
||||||
'cargo install --debug --no-default-features --features="'
|
name: "integration-" + db,
|
||||||
+ db + '",test --force --path .',
|
image: plumeEnv,
|
||||||
// Install plm
|
environment: {
|
||||||
'cargo install --debug --no-default-features --features="'
|
BROWSER: "firefox",
|
||||||
+ db + '" --force --path plume-cli',
|
},
|
||||||
// Run the tests
|
commands: [
|
||||||
"./script/run_browser_test.sh"
|
// Install the front-end
|
||||||
|
"cargo web deploy -p plume-front",
|
||||||
|
// Install the server
|
||||||
|
'cargo install --debug --no-default-features --features="'
|
||||||
|
+ db + '",test --force --path .',
|
||||||
|
// Install plm
|
||||||
|
'cargo install --debug --no-default-features --features="'
|
||||||
|
+ db + '" --force --path plume-cli',
|
||||||
|
// Run the tests
|
||||||
|
"./script/run_browser_test.sh"
|
||||||
|
],
|
||||||
|
},
|
||||||
|
saveCache,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user