mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-27 18:56:30 +00:00
background
This commit is contained in:
@@ -25,7 +25,7 @@ jobs:
|
|||||||
key: cargo-lock-3-{{ checksum "Cargo.lock" }}
|
key: cargo-lock-3-{{ checksum "Cargo.lock" }}
|
||||||
- run:
|
- run:
|
||||||
name: "Install dependencies"
|
name: "Install dependencies"
|
||||||
command: "sudo apt-get update && sudo apt-get install postgresql-contrib-12 postgresql-client-12"
|
command: "sudo apt-get update && sudo apt-get install -y postgresql-contrib-12 postgresql-client-12"
|
||||||
- run:
|
- run:
|
||||||
name: "Build"
|
name: "Build"
|
||||||
command: "cargo build --release"
|
command: "cargo build --release"
|
||||||
@@ -34,13 +34,7 @@ jobs:
|
|||||||
command: "cargo test"
|
command: "cargo test"
|
||||||
- run:
|
- run:
|
||||||
name: "Launch in background"
|
name: "Launch in background"
|
||||||
command: "./target/release/pgcat &"
|
command: "./target/release/pgcat & pgbench -i -h 127.0.0.1 -p 6432 & pgbench -h 127.0.0.1 -p 6432 --protocol extended -t 100 -c 2"
|
||||||
- run:
|
|
||||||
name: "PgBench initialize"
|
|
||||||
command: "pgbench -i -h 127.0.0.1 -p 6432"
|
|
||||||
- run:
|
|
||||||
name: "PgBench run"
|
|
||||||
command: "pgbench -h 127.0.0.1 -p 6432 --protocol extended -t 100 -c 2"
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: cargo-lock-3-{{ checksum "Cargo.lock" }}
|
key: cargo-lock-3-{{ checksum "Cargo.lock" }}
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
Reference in New Issue
Block a user