Skip to content
Snippets Groups Projects
Commit e8756fa1 authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

Merge branch 'more-asdf-dependencies' into 'main'

ci: add more dependencies for ASDF

See merge request gitlab-com/gl-infra/common-ci-tasks!12
parents 728ea42f 19eb80aa
No related branches found
No related tags found
No related merge requests found
Pipeline #13571671 failed
Loading
Loading
@@ -5,7 +5,11 @@ validate_asdf_tool_versions:
variables:
ASDF_DIR: /asdf
script:
- apt-get update && apt-get install -y jq curl git bash build-essential libssl-dev zlib1g-dev
# Some dependencies from https://github.com/pyenv/pyenv/wiki#suggested-build-environment
- apt-get update && apt-get install -y
jq curl git bash build-essential libssl-dev zlib1g-dev
libbz2-dev libreadline-dev libsqlite3-dev wget unzip
ca-certificates
- if [[ -n "${GL_ASDF_LEGACY_VERSIONS_FILE}" ]]; then echo "legacy_version_file = yes" >> ~/.asdfrc; fi
- git clone https://github.com/asdf-vm/asdf.git "${ASDF_DIR}"
- source "${ASDF_DIR}/asdf.sh"
Loading
Loading
#!/usr/bin/env bash
 
# shellcheck source=/dev/null
source "$ASDF_DIR/asdf.sh"
set -euo pipefail
IFS=$'\n\t'
 
Loading
Loading
@@ -20,6 +23,8 @@ install_plugin() {
echo "Failed to perform version installation: ${plugin}"
return 1
}
asdf shell "${plugin}" "$(asdf current "${plugin}"|awk '{print $2}')"
}
 
check_global_golang_install() {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment