- include: setup-Debian.yml
when: ansible_os_family == 'Debian'
+
+- include: setup-Alpine.yml
+ when: ansible_os_family == 'Alpine'
--- /dev/null
+---
+- name: Update apk cache.
+ apk: update_cache=yes
+
+- name: Ensure babeltrace build dependencies are installed.
+ apk: "name={{ item }} state=present"
+ with_items: babeltrace_packages
--- /dev/null
+---
+__babeltrace_packages:
+ - popt-dev
+ - util-linux-dev
+ - python3-dev
+# - python3-sphinx
+ - swig
+ - glib-dev
+ - libdwarf-dev
+ - libelf-dev
+ - chrpath
- include: setup-Debian.yml
when: ansible_os_family == 'Debian'
+- include: setup-Alpine.yml
+ when: ansible_os_family == 'Alpine'
+
- name: Create jenkins user
user:
name: 'jenkins'
--- /dev/null
+---
+- name: Update apk cache.
+ apk: update_cache=yes
+
+- name: Ensure common packages are installed.
+ apk: "name={{ item }} state=present"
+ with_items: common_packages
--- /dev/null
+---
+__common_packages:
+ - sudo
+ - openjdk8
+ - git
+ - vim
+ - tree
+ - htop
+ - alpine-sdk
+ - clang
+ - automake
+ - autoconf
+ - libtool
+ - bison
+ - flex
+ - perl
+ - jq
+ - cppcheck
+ - cloc
+ - py-virtualenv
+ - curl
+ - gettext
+ - openssl-dev
+ - coreutils
+ - bash
+ - shadow
- include: setup-Debian.yml
when: ansible_os_family == 'Debian'
+
+- include: setup-Alpine.yml
+ when: ansible_os_family == 'Alpine'
--- /dev/null
+---
+- name: Update apk cache.
+ apk: update_cache=yes
+
+- name: Ensure cross-compilers packages are installed.
+ apk: "name={{ item }} state=present"
+ with_items: cross_compilers_packages
--- /dev/null
+---
+# TODO
+__cross_compilers_packages: []
- include: setup-Debian.yml
when: ansible_os_family == 'Debian'
+
+- include: setup-Alpine.yml
+ when: ansible_os_family == 'Alpine'
--- /dev/null
+---
+- name: Update apk cache.
+ apk: update_cache=yes
+
+- name: Ensure liburcu build dependencies are installed.
+ apk: "name={{ item }} state=present"
+ with_items: liburcu_packages
--- /dev/null
+---
+__liburcu_packages: []
- include: setup-Debian.yml
when: ansible_os_family == 'Debian'
+- include: setup-Alpine.yml
+ when: ansible_os_family == 'Alpine'
+
- name: checkout repo
git: repo=git://artifacts.internal.efficios.com/git/linux-stable.git
dest=/home/jenkins/gitcache/linux-stable.git
--- /dev/null
+---
+- name: Update apk cache.
+ apk: update_cache=yes
+
+- name: Ensure lttng-modules build dependencies are installed.
+ apk: "name={{ item }} state=present"
+ with_items: lttng_modules_packages
+
--- /dev/null
+---
+__lttng_modules_packages:
+# - kernel-wedge
+ - libelf-dev
+ - bc
+# - gcc-4.9
- name: Define lttng_tools_packages_no_recommends.
set_fact:
lttng_tools_packages_no_recommends: "{{ __lttng_tools_packages_no_recommends | list }}"
- when: lttng_tools_packages_no_recommends is not defined
+ when:
+ - lttng_tools_packages_no_recommends is not defined
+ - ansible_os_family == 'Debian'
# Setup/install tasks.
- include: setup-RedHat.yml
- include: setup-Debian.yml
when: ansible_os_family == 'Debian'
+
+- include: setup-Alpine.yml
+ when: ansible_os_family == 'Alpine'
--- /dev/null
+---
+- name: Update apk cache.
+ apk: update_cache=yes
+
+- name: Ensure lttng-tools build dependencies are installed.
+ apk: "name={{ item }} state=present"
+ with_items: lttng_tools_packages
--- /dev/null
+---
+__lttng_tools_packages:
+ - popt-dev
+ - libxml2-dev
+ - bash-completion
+ - asciidoc
+ - xmlto
- include: setup-Debian.yml
when: ansible_os_family == 'Debian'
+
+- include: setup-Alpine.yml
+ when: ansible_os_family == 'Alpine'
--- /dev/null
+---
+- name: Update apk cache.
+ apk: update_cache=yes
+
+- name: Ensure lttng-ust build dependencies are installed.
+ apk: "name={{ item }} state=present"
+ with_items: lttng_ust_packages
--- /dev/null
+---
+__lttng_ust_packages:
+ - util-linux-dev
+ - texinfo
+ - python3
+# - liblog4j1.2-java
+ - openjdk8