From 5e5331c68a8398acb9073f1ef2b65f1ccfbc63fd Mon Sep 17 00:00:00 2001 From: jpic Date: Fri, 15 May 2015 00:05:21 +0200 Subject: [PATCH] Enabled travis --- .travis.yml | 16 ++++++++++++++++ test/etc/minion | 7 +++++++ test/pillar/example.sls | 1 + test/pillar/top.sls | 3 +++ 4 files changed, 27 insertions(+) create mode 100644 .travis.yml create mode 100644 test/etc/minion create mode 120000 test/pillar/example.sls create mode 100644 test/pillar/top.sls 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