From 33494f29e19873601fc4dc6fdc4498fcfc0825ce Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 16 Apr 2020 19:01:28 -0700 Subject: ci: don't re-build/install commands if existing --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e0c7c323..85d660e6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,8 +29,8 @@ unified_test: - export PATH="$PATH:$CARGO_HOME/bin" - apt update -qy - apt install -y python3-dev python3-pip python3-wheel python3-requests python3-six python3-pytest libsnappy-dev libsodium-dev software-properties-common python3.7 python3.7-dev python3.7-venv python3.7-distutils libpq-dev - - cargo install diesel_cli --version 1.3.1 --no-default-features --features postgres - - pip3 install pipenv + - diesel --version || cargo install diesel_cli --version 1.3.1 --no-default-features --features postgres + - pipenv --version || python3.7 -m pip install pipenv - pipenv --version script: - rustc --version && cargo --version && diesel --version -- cgit v1.2.3