diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ab01a9a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: python +python: + - '2.7' + +before_install: + - sudo apt-get update + - curl -L http://bootstrap.saltstack.org | sudo sh -s -- git develop + +install: + - sudo mkdir -p /srv && sudo ln -sfn $PWD /srv/formula + # See what kind of travis box you're on + # to help with making your states compatible with travis + - sudo salt-call grains.items --local + +script: + - sudo salt-call state.show_highstate --local --retcode-passthrough --config-dir=test/etc diff --git a/test/etc/minion b/test/etc/minion new file mode 100644 index 0000000..85177ef --- /dev/null +++ b/test/etc/minion @@ -0,0 +1,7 @@ +file_roots: + base: + - /srv/formula + +pillar_roots: + base: + - /srv/formula/test/pillar diff --git a/test/pillar/example.sls b/test/pillar/example.sls new file mode 120000 index 0000000..837da91 --- /dev/null +++ b/test/pillar/example.sls @@ -0,0 +1 @@ +../../pillar.example \ No newline at end of file diff --git a/test/pillar/top.sls b/test/pillar/top.sls new file mode 100644 index 0000000..7bd0c36 --- /dev/null +++ b/test/pillar/top.sls @@ -0,0 +1,3 @@ +base: + '*': + - example