RawIron / devops-my-ubuntu

clone my ubuntu setup using Ansible playbook
1 stars 1 forks source link

build on travis-ci #24

Closed RawIron closed 7 years ago

RawIron commented 7 years ago

Start as simple as running a syntax check only for the playbooks.

Travis-Ci supports 3 different build environments. This is nicely explained in this document. Usage of any other build environment requires containers. To test the ansible scripts against many different distributions or to test against the latest distributions (Ubuntu 16.04 for example) containers are required.

There should be a test procedure which runs locally first. In case the tests pass the code can be pushed to remote. Pushing to remote and test if things are working on Travis-Ci is a bad idea.

RawIron commented 7 years ago

used the OS Linux environment. it supports only Ubuntu Trusty. was easiest to get working. first run test.sh on local vagrant box and after successful test push to Travis.