git-secret/.ci/integration/tasks/dependencies.yml
Simon Massey b504facc5d
Build fixes for Alpine latest (#246)
* trying alpine

* Make directory /usr/local/src/ for Alpine based distros

* fixes some alpine issue

* move gem install etc to its own task

* moved gem install etc for alphine into dependencies

* reenabling all ci tests

* typo fix as per review

* clarity around doc build disable being gnupg docs

* commit about ignoring non-zero return value
2018-07-24 17:51:02 +01:00

37 lines
987 B
YAML

---
- name: Load a variable file based on the OS type, or a default if not found.
include_vars: "{{ item }}"
with_first_found:
- "{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}.yml"
- "default.yml"
- name: Install Dependencies
package:
name: "{{ item }}"
state: present
with_items: "{{ test_dependencies }}"
- name: Get ShellCheck
get_url:
url: https://storage.googleapis.com/shellcheck/shellcheck-latest.linux.x86_64.tar.xz
dest: /tmp/shellcheck.tar.xz
- name: Install ShellCheck
command: tar xvf /tmp/shellcheck.tar.xz -C /usr/bin --strip-components=1
args:
warn: no
creates: /usr/bin/shellcheck
- name: Install fpm
gem:
name: fpm
state: present
user_install: no
# here the package is installed but a non-zero status code is returned that we ignore
- name: Install apk packaging dependencies for Alpine based distros
command: bash -lc "gem install etc || :"
when:
- ansible_os_family == "Alpine"