-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A Vagrant+Ansible automated test project #542
Conversation
This provides a new test project in the `test-project-play-rpm` directory. It is the default Play 2.3.x sample project packaged as an RPM. The build and test environment uses a Centos-6.6 VM, managed with Vagrant and provisioned with Ansible (see the vagrant file and `provisioning/site.yml`). The the package building and tests are also orchestrated with Ansible (see `provisioning/test.yml`). The tests run performs the following: - compile and build rpm package - install the built rpm - check that server is running and responding after install - check that service can restart - and is responding after restart - uninstall the rpm
Note, this PR depends on #541 |
Nice. How do you run the semi-automated tests? I'm fairly new to |
avoid substitution issues by excluding sbt-native-packager from Play’s sbt-plugin
Ah, I guess a readme is probably in order. Ansible can be installed through a bunch of different package managers: The Vagrant file invokes Ansible as a ‘provisioner’ The |
# the path on the guest to mount the folder. And the optional third | ||
# argument is a set of non-required options. | ||
# config.vm.synced_folder "../data", "/vagrant_data" | ||
config.vm.synced_folder "..", "/vagrant" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will sync the complete sbt-native-packager project directory, rather than just this test subdirectory.
Works fine for me. I'll merge this and add your instructions. |
A Vagrant+Ansible automated test project
This provides a new test project in the
test-project-play-rpm
directory. It is the default Play 2.3.x sample project packaged as an RPM.The build and test environment uses a Centos-6.6 VM, managed with Vagrant and provisioned with Ansible (see the vagrant file and
provisioning/site.yml
).The the package building and tests are also orchestrated with Ansible (see
provisioning/test.yml
).The test run (run-test-playbook.sh) performs the following: