1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-14 21:45:13 -05:00
curl/zuul.d/playbooks/pre.yaml

71 lines
1.6 KiB
YAML
Raw Normal View History

---
- hosts: all
tasks:
- name: Install latest stable release of go
when: gimme_stable|default(false)
block:
- name: Find latest stable version
register: go_stable
uri:
url: https://golang.org/VERSION?m=text
return_content: true
- name: Install Go
include_role:
name: ensure-go
vars:
go_version: "{{ go_stable.content | regex_replace('^go', '') }}"
- name: Symlink /usr/local/go/bin/go to /usr/bin/go
become: true
file:
src: /usr/local/go/bin/go
dest: /usr/bin/go
state: link
- name: Install common dependencies
become: true
apt:
update_cache: true
pkg:
- autoconf
- automake
- cmake
- valgrind
- libev-dev
- libc-ares-dev
- libssl-dev
- libtool
- g++
- g++-8
- stunnel4
- libidn2-dev
- gnutls-bin
- python-impacket
- ninja-build
- libgsasl7-dev
- libnghttp2-dev
- name: Install job-specific packages
when: curl_apt_packages is defined
become: true
apt:
pkg: "{{ curl_apt_packages }}"
- name: Symlink /usr/bin/scan-build-10 to /usr/bin/scan-build
when:
- curl_apt_packages is defined
- '"clang-tools-10" in curl_apt_packages'
become: true
file:
src: /usr/bin/scan-build-10
dest: /usr/bin/scan-build
state: link
- name: Run before script
shell: "./scripts/zuul/before_script.sh"
args:
chdir: "{{ zuul.project.src_dir }}"
environment: "{{ curl_env }}"
...