mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Clarify new/working .travis.yml
This commit is contained in:
parent
2fc9f5c4fa
commit
2490551c06
1 changed files with 7 additions and 4 deletions
11
.travis.yml
11
.travis.yml
|
@ -1,17 +1,20 @@
|
||||||
language: python
|
language: python
|
||||||
python: "3.8"
|
python: "3.8"
|
||||||
dist: focal
|
dist: focal
|
||||||
|
|
||||||
#addons:
|
#addons:
|
||||||
# apt:
|
# apt:
|
||||||
# packages:
|
# packages:
|
||||||
# - python-pip
|
# - python-pip
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# - scripts/ansible # See #2105: fails to install latest Ansible (& ~4 Ansible Collections from collections.yml) due to Travis VM's disk layout/perms being different
|
# - scripts/ansible # See #2105: fails to install latest Ansible (& ~4 Ansible Collections from collections.yml) due to Travis VM's disk layout/perms being different
|
||||||
# - pip install ansible # SLOW/OVERWEIGHT: installs Ansible 3.0.0+ with ~80 Ansible Collections
|
# - pip install ansible # SLOW/OVERWEIGHT: installs Ansible 3.0.0+ with ~80 Ansible Collections
|
||||||
- pip install ansible-base # Let's avoid all Ansible Collections for now (for Ansible syntax check!)
|
- pip install ansible-base # Install latest ansible-base 2.10.6+, similar to https://github.com/iiab/iiab/blob/master/scripts/ansible
|
||||||
- ansible-galaxy collection install -r collections.yml
|
- ansible-galaxy collection install -r collections.yml # Install ~4 Ansible Collections
|
||||||
- "{ echo 'roles_path = ./roles/'; } >> ansible.cfg" # Add correct roles_path to ansible.cfg
|
- "{ echo 'roles_path = ./roles/'; } >> ansible.cfg" # Add correct roles_path to ansible.cfg, appending to https://github.com/iiab/iiab/blob/master/ansible.cfg
|
||||||
# - "{ echo '[defaults]'; echo 'roles_path = ./roles/'; } >> ansible.cfg" # Create ansible.cfg with correct roles_path and local_tmp
|
# - "{ echo '[defaults]'; echo 'roles_path = ./roles/'; } >> ansible.cfg" # Create ansible.cfg with correct roles_path and local_tmp
|
||||||
# - cat ansible.cfg # UNCOMMENT TO VERIFY
|
# - cat ansible.cfg # UNCOMMENT TO VERIFY!
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
|
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue