aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-04-16 19:01:28 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-04-16 22:07:12 -0700
commit33494f29e19873601fc4dc6fdc4498fcfc0825ce (patch)
treebab8e4c839412d77e493d0d9803ccc79ed17dfe4
parente376e9d98e3b891c1af8ba3023298d342c957148 (diff)
downloadfatcat-33494f29e19873601fc4dc6fdc4498fcfc0825ce.tar.gz
fatcat-33494f29e19873601fc4dc6fdc4498fcfc0825ce.zip
ci: don't re-build/install commands if existing
-rw-r--r--.gitlab-ci.yml4
1 files 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