Skip to content
Snippets Groups Projects
Commit bce5ff17 authored by Eino Tuominen's avatar Eino Tuominen
Browse files

Merge branch 'develop' into 'master'

added CI tests

See merge request !1
parents 23f9b654 fcf64615
Branches
No related tags found
1 merge request!1added CI tests
Pipeline #
---
before:
script:
- apt install python-pip
- pip install ansible
- ansible --version
- printf '[defaults]\nroles_path=../' >ansible.cfg
playbook:
script:
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
---
language: python
python: "2.7"
# Use the new container infrastructure
sudo: false
# Install ansible
addons:
apt:
packages:
- python-pip
install:
# Install ansible
- pip install ansible
# Check ansible version
- ansible --version
# Create ansible.cfg with correct roles_path
- printf '[defaults]\nroles_path=../' >ansible.cfg
script:
# Basic role syntax check
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
\ No newline at end of file
localhost
\ No newline at end of file
---
- hosts: localhost
remote_user: root
roles:
- nginx-server
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment