#!/bin/bash

PLAYBOOK="playbook.yml"
INVENTORY="inventories/macosx"
COMMON_ARGS="--inventory-file=$INVENTORY $PLAYBOOK"

# Show Software Versions
ansible-playbook --version
ansible-lint --version¬

# Run Tests

cd $TRAVIS_BUILD_DIR/ansible

echo "Run ansible-lint"
ansible-lint $PLAYBOOK

echo "Run ansible syntax checks"
echo "ansible-playbook $COMMON_ARGS --syntax-check"

# TODO create some dynamic fake ansible tasks with rubber tool
echo "rubber testing stuff is pending..."

# Run Rubber against Travis worker
cd $TRAVIS_BUILD_DIR

echo "Customize dispansible settings for Travis"
cp .travis/settings_{TRAVIS_OS_NAME}.yml ./settings.yml

echo "Run dispansible"
./dispansible all

#!/bin/bash

PLAYBOOK="playbook.yml"
INVENTORY="inventories/macosx"
COMMON_ARGS="--inventory-file=$INVENTORY $PLAYBOOK"

# Show Software Versions
ansible-playbook --version
ansible-lint --version¬

# Run Tests

cd $TRAVIS_BUILD_DIR/ansible

echo "Run ansible-lint"
ansible-lint $PLAYBOOK

echo "Run ansible syntax checks"
echo "ansible-playbook $COMMON_ARGS --syntax-check"

# TODO create some dynamic fake ansible tasks with rubber tool
echo "rubber testing stuff is pending..."

# Run Rubber against Travis worker
cd $TRAVIS_BUILD_DIR

echo "Customize dispansible settings for Travis"
cp .travis/settings_${TRAVIS_OS_NAME}.yml ./settings.yml

echo "Run dispansible"
./dispansible all

Fix syntax error in Travis CI main build script
Fix syntax error in Travis CI main build script
