summaryrefslogtreecommitdiff
path: root/bin/setup
blob: 03f0938f975c4ea7e6534919853720b8ba81fb2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash -l

set -e

cd "$(dirname "$0")/.."

export PATH="/builds/gitlab-org/security-products/license-management/exe:/opt/gitlab/embedded/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

if [ ! -f /usr/sbin/haproxy ] && command -v apt-get; then
  apt-get update -y && apt-get install -y --no-install-recommends haproxy
fi

[[ -z "$CI_JOB_ID" ]] && enable_dev_mode
bundle config --local path vendor
bundle config --local jobs "$(nproc)"
bundle install