Skip to content

Commit a5db688

Browse files
authored
Speed up CI a bit (#119)
* Sleep for 1s * use premade image * quicker * revert shutdown timeout
1 parent f963b12 commit a5db688

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
1010
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
1111
docker:
12-
- image: cimg/rust:1.62.0
12+
- image: levkk/pgcat-ci:latest
1313
environment:
1414
RUST_LOG: info
1515
RUSTFLAGS: "-C instrument-coverage"

.circleci/run_tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ sed -i 's/pool_mode = "transaction"/pool_mode = "session"/' .circleci/pgcat.toml
122122
# Reload config test
123123
kill -SIGHUP $(pgrep pgcat)
124124

125+
sleep 1
126+
125127
# Prepared statements that will only work in session mode
126128
pgbench -U sharding_user -h 127.0.0.1 -p 6432 -t 500 -c 2 --protocol prepared
127129

Dockerfile.ci

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM cimg/rust:1.62.0
2+
RUN sudo apt-get update && \
3+
sudo apt-get install -y psmisc postgresql-contrib-12 postgresql-client-12 ruby ruby-dev libpq-dev python3 python3-pip lcov llvm-11 && \
4+
sudo apt-get upgrade curl
5+
RUN cargo install cargo-binutils rustfilt && \
6+
rustup component add llvm-tools-preview
7+
RUN pip3 install psycopg2 && \
8+
sudo gem install bundler

0 commit comments

Comments
 (0)