diff --git a/.ci/integration/gnupg-git/default.yml b/.ci/integration/gnupg-git/default.yml index e4513a09..1650f4f8 100644 --- a/.ci/integration/gnupg-git/default.yml +++ b/.ci/integration/gnupg-git/default.yml @@ -60,6 +60,11 @@ when: - ansible_os_family == "RedHat" + - name: Install gnupg build dependencies for Alpine based distros + command: bash -lc "apk add gnutls-dev libksba-dev libgcrypt-dev libgpg-error-dev npth-dev zlib-dev libassuan-dev bzip2-dev sqlite-dev libusb-dev" + when: + - ansible_os_family == "Alpine" + - name: Install rspec in /usr/local/bin for RedHat based distros command: bash -lc "gem install -n /usr/local/bin rspec" when: @@ -90,6 +95,11 @@ retries: 5 delay: 10 + - name: Make directory /usr/local/src/ for Alpine based distros + command: bash -lc "mkdir -p /usr/local/src/" + when: + - ansible_os_family == "Alpine" + - name: Extract gnupg source tarball unarchive: src: /tmp/gnupg.tar.gz @@ -132,6 +142,15 @@ command: bash -lc "cd {{ gpg_src_path }} && ./configure {{ gpg_build_config }}" changed_when: False + # disable gnupg doc build on alpine as it is not detecting an absence of graphical tools such as fig2dev on alpine + - name: Disable making docs on Alpine + lineinfile: + path: "{{ gpg_src_path }}/Makefile" + regexp: '^doc = doc$' + line: 'doc = ' + when: + - ansible_os_family == "Alpine" + - name: Compile gnupg src command: bash -lc "cd {{ gpg_src_path }} && make" changed_when: False diff --git a/.ci/integration/tasks/dependencies.yml b/.ci/integration/tasks/dependencies.yml index 62bb9eae..4fc9c758 100644 --- a/.ci/integration/tasks/dependencies.yml +++ b/.ci/integration/tasks/dependencies.yml @@ -28,3 +28,9 @@ 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" diff --git a/.ci/integration/vars/Alpine.yml b/.ci/integration/vars/Alpine.yml index e9ed9608..3a6f7eda 100644 --- a/.ci/integration/vars/Alpine.yml +++ b/.ci/integration/vars/Alpine.yml @@ -13,3 +13,6 @@ test_dependencies: build_tools: - make - tar + - autoconf + - automake + - gettext diff --git a/.travis.yml b/.travis.yml index 6d892f6d..42cd37ec 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,12 +7,12 @@ matrix: sudo: required language: ruby rvm: 2.4 - #- os: linux - # env: KITCHEN_REGEXP="gnupg1-alpine-latest" - # services: docker - # sudo: required - # language: ruby - # rvm: 2.4 + - os: linux + env: KITCHEN_REGEXP="gnupg1-alpine-latest" + services: docker + sudo: required + language: ruby + rvm: 2.4 - os: linux env: KITCHEN_REGEXP="gnupg1-debian-latest" services: docker @@ -37,12 +37,12 @@ matrix: sudo: required language: ruby rvm: 2.4 - #- os: linux - # env: KITCHEN_REGEXP="gnupg2-alpine-latest" - # services: docker - # sudo: required - # language: ruby - # rvm: 2.4 + - os: linux + env: KITCHEN_REGEXP="gnupg2-alpine-latest" + services: docker + sudo: required + language: ruby + rvm: 2.4 - os: linux env: KITCHEN_REGEXP="gnupg2-debian-latest"; GITSECRET_DIST="deb" services: docker @@ -122,4 +122,4 @@ after_deploy: notifications: email: on_success: never - on_failure: change + on_failure: change \ No newline at end of file