salt formula for watchdog (#1)
* Initial commit
* Initial structure changed, server.sls added
* watchdog salt formula added
* Minor fixes and fix kitchen tests
* Fix "defined"
* Fix issues found by Filip
* Fixing issues found during review...
* TravisCI fix
* Fix based on reviews...
* Fix schema tests
* Fix schema tests
* Fix schema test again
* Fix schema test one more time
* replace salt_run with salt-call
* set modules path param
* Add installation of jsonschema
* Adding minimal schema
* Fix filename
* Filenames fixed
* Fix file name
* Proper schema added
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..a17ce65
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,47 @@
+sudo: required
+services:
+ - docker
+
+addons:
+ apt:
+ packages:
+ - apt-transport-https
+
+install:
+ - pip install PyYAML
+ - pip install virtualenv
+ - |
+ test -e Gemfile || cat <<EOF > Gemfile
+ source 'https://rubygems.org'
+ gem 'rake'
+ gem 'test-kitchen'
+ gem 'kitchen-docker'
+ gem 'kitchen-inspec'
+ gem 'inspec'
+ gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
+ - bundle install
+
+env:
+ - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=server-single
+ - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=server-single
+ - PLATFORM=trevorj/salty-whales:xenial SUITE=server-single
+ - PLATFORM=trevorj/salty-whales:trusty SUITE=server-single
+
+before_script:
+ - set -o pipefail
+ - make test | tail
+
+script:
+ - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
+ - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
+
+notifications:
+ webhooks:
+ urls:
+ - https://webhooks.gitter.im/e/6123573504759330786b
+ on_success: change # options: [always|never|change] default: always
+ on_failure: never # options: [always|never|change] default: always
+ on_start: never # options: [always|never|change] default: always
+ on_cancel: never # options: [always|never|change] default: always
+ on_error: never # options: [always|never|change] default: always
+ email: false