1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00
curl/zuul.d/playbooks/pre.yaml
Mohammed Naser 63583a0bb7
CI: add jobs using Zuul
It also includes a few changes to get the builds going:
- Added autoconf to common dependencies
- Added automake to common dependencies
- Added libtool to common dependencies
- Added libssl-dev to common dependencies

Co-authored-by: Albin Vass

Closes #7245
2021-06-14 10:54:53 +02:00

71 lines
1.6 KiB
YAML

---
- 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/travis/before_script.sh"
args:
chdir: "{{ zuul.project.src_dir }}"
environment: "{{ curl_env }}"
...