1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Run tests with macOS 10.15. (#971)

* Run tests with macOS 10.15.

* Restrict to macOS CI runs for now until they pass.

* Skip tests on macOS that are skipped on OSX.

* Disable consul test for macOS.

* Disable chroot connection tests for macOS.

* Add setup_gnutar role from https://github.com/ansible/ansible/pull/71841.

* Use setup_gnutar for yarn and npm tests.

* Revert "Restrict to macOS CI runs for now until they pass."

This reverts commit d945d0399f.

* hashi_vault lookup tests seem to be always unstable, disabling for now.

* Use homebrew module instead of command.
This commit is contained in:
Felix Fontein 2020-09-30 14:00:05 +02:00 committed by GitHub
parent 951a7e2758
commit eba5216be5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
80 changed files with 109 additions and 0 deletions

View file

@ -49,6 +49,7 @@ matrix:
#- env: T=devel/aix/7.2/1
- env: T=devel/osx/10.11/1
- env: T=devel/macos/10.15/1
- env: T=devel/rhel/7.8/1
- env: T=devel/rhel/8.2/1
- env: T=devel/freebsd/11.1/1
@ -65,6 +66,7 @@ matrix:
#- env: T=devel/aix/7.2/2
- env: T=devel/osx/10.11/2
- env: T=devel/macos/10.15/2
- env: T=devel/rhel/7.8/2
- env: T=devel/rhel/8.2/2
- env: T=devel/freebsd/11.1/2
@ -81,6 +83,7 @@ matrix:
#- env: T=devel/aix/7.2/3
- env: T=devel/osx/10.11/3
- env: T=devel/macos/10.15/3
- env: T=devel/rhel/7.8/3
- env: T=devel/rhel/8.2/3
- env: T=devel/freebsd/11.1/3
@ -97,6 +100,7 @@ matrix:
#- env: T=devel/aix/7.2/4
- env: T=devel/osx/10.11/4
- env: T=devel/macos/10.15/4
- env: T=devel/rhel/7.8/4
- env: T=devel/rhel/8.2/4
- env: T=devel/freebsd/11.1/4
@ -113,6 +117,7 @@ matrix:
#- env: T=devel/aix/7.2/5
- env: T=devel/osx/10.11/5
- env: T=devel/macos/10.15/5
- env: T=devel/rhel/7.8/5
- env: T=devel/rhel/8.2/5
- env: T=devel/freebsd/11.1/5

View file

@ -4,3 +4,4 @@ needs/root
skip/aix
skip/freebsd
skip/osx
skip/macos

View file

@ -2,4 +2,5 @@ destructive
shippable/posix/group1
skip/aix
skip/osx
skip/macos
skip/freebsd

View file

@ -1,2 +1,3 @@
needs/root
shippable/posix/group3
skip/macos # FIXME

View file

@ -1,3 +1,4 @@
shippable/posix/group2
destructive
skip/aix
skip/macos # cannot simply create binaries in system locations on newer macOS versions

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group4
skip/aix
skip/osx
skip/macos

View file

@ -1,5 +1,6 @@
shippable/posix/group3
skip/osx
skip/macos
skip/freebsd
skip/aix
destructive

View file

@ -1,5 +1,6 @@
shippable/posix/group5
skip/osx
skip/macos
skip/freebsd
skip/aix
destructive

View file

@ -1,5 +1,6 @@
shippable/posix/group2
skip/osx
skip/macos
skip/freebsd
skip/aix
destructive

View file

@ -1,5 +1,6 @@
shippable/posix/group2
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive

View file

@ -1,5 +1,6 @@
shippable/posix/group5
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive

View file

@ -1,5 +1,6 @@
shippable/posix/group2
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive

View file

@ -1,5 +1,6 @@
shippable/posix/group3
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive

View file

@ -1,5 +1,6 @@
shippable/posix/group5
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive

View file

@ -1,5 +1,6 @@
shippable/posix/group2
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive

View file

@ -1,6 +1,7 @@
shippable/posix/group2
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive
skip/docker # The tests sometimes make docker daemon unstable; hence,

View file

@ -1,6 +1,7 @@
shippable/posix/group3
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive
skip/docker # The tests sometimes make docker daemon unstable; hence,

View file

@ -1,5 +1,6 @@
shippable/posix/group2
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive

View file

@ -1,6 +1,7 @@
shippable/posix/group2
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive
skip/docker # The tests sometimes make docker daemon unstable; hence,

View file

@ -1,6 +1,7 @@
shippable/posix/group2
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive
skip/docker # The tests sometimes make docker daemon unstable; hence,

View file

@ -1,6 +1,7 @@
shippable/posix/group1
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive
skip/docker # The tests sometimes make docker daemon unstable; hence,

View file

@ -1,6 +1,7 @@
shippable/posix/group1
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive
skip/docker # The tests sometimes make docker daemon unstable; hence,

View file

@ -2,6 +2,7 @@ shippable/posix/group2
disabled # See: https://github.com/ansible/ansible/issues/61815
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive
skip/docker # The tests sometimes make docker daemon unstable; hence,

View file

@ -1,6 +1,7 @@
shippable/posix/group1
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive
skip/docker # The tests sometimes make docker daemon unstable; hence,

View file

@ -1,6 +1,7 @@
shippable/posix/group5
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive
skip/docker # The tests sometimes make docker daemon unstable; hence,

View file

@ -1,6 +1,7 @@
shippable/posix/group3
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive
skip/docker # The tests sometimes make docker daemon unstable; hence,

View file

@ -1,5 +1,6 @@
shippable/posix/group2
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive

View file

@ -1,5 +1,6 @@
shippable/posix/group1
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive

View file

@ -1,5 +1,6 @@
shippable/posix/group4
skip/aix
skip/osx
skip/macos
skip/rhel
skip/freebsd

View file

@ -2,6 +2,7 @@ shippable/posix/group1
destructive
skip/aix
skip/osx
skip/macos
skip/freebsd
skip/python2.6 # installing etcd3 python module will fail on python < 2.7
disabled # see https://github.com/ansible-collections/community.general/issues/322

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group3
skip/aix
skip/osx
skip/macos

View file

@ -3,6 +3,7 @@ destructive
skip/aix
skip/freebsd
skip/osx
skip/macos
skip/rhel
needs/root
needs/privileged

View file

@ -3,5 +3,6 @@ destructive
skip/aix
skip/freebsd
skip/osx
skip/macos
skip/rhel
needs/root

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group1
skip/aix
skip/osx
skip/macos

View file

@ -2,5 +2,6 @@ destructive
shippable/posix/group1
disabled
skip/osx
skip/macos
skip/freebsd
skip/rhel

View file

@ -2,6 +2,7 @@ disabled
shippable/posix/group2
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive
skip/docker # We need SSH access to the VM and need to be able to let

View file

@ -1,6 +1,7 @@
shippable/posix/group2
skip/aix
skip/osx
skip/macos
skip/freebsd
destructive
skip/docker # The tests sometimes make docker daemon unstable; hence,

View file

@ -3,4 +3,5 @@ shippable/posix/group4
skip/docker # kernel modules not loadable
skip/freebsd # no iptables/netfilter (Linux specific)
skip/osx # no iptables/netfilter (Linux specific)
skip/macos # no iptables/netfilter (Linux specific)
skip/aix # no iptables/netfilter (Linux specific)

View file

@ -2,6 +2,7 @@ destructive
shippable/posix/group1
skip/aix
skip/osx
skip/macos
skip/freebsd
skip/rhel
needs/root

View file

@ -2,5 +2,6 @@ shippable/posix/group1
skip/aix
skip/freebsd
skip/osx
skip/macos
skip/rhel
needs/root

View file

@ -2,4 +2,5 @@ shippable/posix/group3
destructive
skip/aix
skip/osx
skip/macos
skip/freebsd

View file

@ -4,6 +4,7 @@ needs/file/tests/utils/constraints.txt
needs/target/setup_etcd3
skip/aix
skip/osx
skip/macos
skip/freebsd
skip/python2.6 # lookups are controller only, and we no longer support Python 2.6 on the controller
disabled # see https://github.com/ansible-collections/community.general/issues/322

View file

@ -4,3 +4,4 @@ needs/target/setup_openssl
needs/file/tests/utils/constraints.txt
skip/aix
skip/python2.6 # lookups are controller only, and we no longer support Python 2.6 on the controller
skip/macos # FIXME seems to be always unstable

View file

@ -4,3 +4,4 @@ shippable/posix/group1
skip/aix
skip/freebsd
skip/osx
skip/macos

View file

@ -2,5 +2,6 @@ notification/mqtt
shippable/posix/group1
skip/aix
skip/osx
skip/macos
skip/freebsd
skip/rhel

View file

@ -1,2 +1,3 @@
dependencies:
- setup_pkg_mgr
- setup_gnutar

View file

@ -1,5 +1,6 @@
destructive
shippable/posix/group1
skip/osx
skip/macos
skip/rhel8.0
skip/freebsd

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group4
skip/aix
skip/osx
skip/macos

View file

@ -3,3 +3,4 @@ shippable/posix/group4
postgresql_db
skip/aix
skip/osx
skip/macos

View file

@ -2,4 +2,5 @@ destructive
shippable/posix/group4
skip/aix
skip/osx
skip/macos
skip/freebsd

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group4
skip/aix
skip/osx
skip/macos

View file

@ -2,5 +2,6 @@ destructive
shippable/posix/group1
skip/aix
skip/osx
skip/macos
skip/freebsd
skip/rhel

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group4
skip/aix
skip/osx
skip/macos

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group4
skip/aix
skip/osx
skip/macos

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group4
skip/aix
skip/osx
skip/macos

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group4
skip/aix
skip/osx
skip/macos

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group4
skip/aix
skip/osx
skip/macos

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group4
skip/aix
skip/osx
skip/macos

View file

@ -2,4 +2,5 @@ destructive
shippable/posix/group4
skip/aix
skip/osx
skip/macos
skip/freebsd

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group4
skip/aix
skip/osx
skip/macos

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group4
skip/aix
skip/osx
skip/macos

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group4
skip/aix
skip/osx
skip/macos

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group4
skip/aix
skip/osx
skip/macos

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group4
skip/aix
skip/osx
skip/macos

View file

@ -2,5 +2,6 @@ destructive
shippable/posix/group1
skip/aix
skip/osx
skip/macos
skip/freebsd
skip/rhel

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group5
skip/aix
skip/osx
skip/macos

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group4
skip/aix
skip/osx
skip/macos

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group4
skip/aix
skip/osx
skip/macos

View file

@ -1,6 +1,7 @@
destructive
shippable/posix/group1
skip/osx
skip/macos
skip/freebsd
skip/rhel
skip/aix

View file

@ -2,4 +2,5 @@ destructive
shippable/posix/group1
skip/aix
skip/osx
skip/macos
skip/rhel

View file

@ -0,0 +1,7 @@
---
- name: uninstall gnu-tar
community.general.homebrew:
name: gnu-tar
state: absent
become: yes
become_user: "{{ brew_stat.stat.pw_name }}"

View file

@ -0,0 +1,20 @@
---
- when: ansible_facts.distribution == 'MacOSX'
block:
- name: MACOS | Find brew binary
command: which brew
register: brew_which
- name: MACOS | Get owner of brew binary
stat:
path: "{{ brew_which.stdout }}"
register: brew_stat
- name: MACOS | Install gnu-tar
community.general.homebrew:
name: gnu-tar
state: present
become: yes
become_user: "{{ brew_stat.stat.pw_name }}"
notify:
- uninstall gnu-tar

View file

@ -2,3 +2,4 @@ destructive
shippable/posix/group1
skip/aix
skip/osx
skip/macos

View file

@ -1,6 +1,7 @@
shippable/posix/group2
skip/aix
skip/osx
skip/macos
skip/freebsd
skip/rhel8.0
skip/rhel8.0b

View file

@ -3,4 +3,5 @@ skip/aix
skip/docker
skip/freebsd
skip/osx
skip/macos
destructive

View file

@ -3,4 +3,5 @@ needs/root
shippable/posix/group1
skip/aix
skip/osx
skip/macos
skip/freebsd

View file

@ -1,2 +1,3 @@
dependencies:
- setup_pkg_mgr
- setup_gnutar

View file

@ -3,4 +3,5 @@ shippable/posix/group1
skip/aix
skip/freebsd
skip/osx
skip/macos
skip/rhel

View file

@ -3,4 +3,5 @@ shippable/posix/group1
skip/aix
skip/freebsd
skip/osx
skip/macos
skip/rhel

View file

@ -0,0 +1 @@
remote.sh