Add travis ci (#35)
* Add travis CI
* Add ci testing of example models (with python 2.7 as py3 still fails)
diff --git a/test/model/default/classes/first.yml b/test/model/default/classes/first.yml
new file mode 100644
index 0000000..9b72a26
--- /dev/null
+++ b/test/model/default/classes/first.yml
@@ -0,0 +1,32 @@
+parameters:
+ _param:
+ some: param
+ colour: red
+ lab:
+ name: test
+ label: first
+ colour:
+ escaped: \${_param:colour}
+ doubleescaped: \\${_param:colour}
+ unescaped: ${_param:colour}
+ colours:
+ red:
+ name: red
+ blue:
+ name: blue
+ one:
+ a: 1
+ b: 2
+ two:
+ c: 3
+ d: 4
+ three:
+ e: 5
+ list_to_override:
+ - one
+ - two
+ dict_to_override:
+ one: 1
+ two: 2
+
+
diff --git a/test/model/default/classes/lab/env/dev.yml b/test/model/default/classes/lab/env/dev.yml
new file mode 100644
index 0000000..0cce363
--- /dev/null
+++ b/test/model/default/classes/lab/env/dev.yml
@@ -0,0 +1,4 @@
+
+parameters:
+ lab:
+ name: dev
diff --git a/test/model/default/classes/second.yml b/test/model/default/classes/second.yml
new file mode 100644
index 0000000..dab50c7
--- /dev/null
+++ b/test/model/default/classes/second.yml
@@ -0,0 +1,9 @@
+classes:
+- first
+
+parameters:
+ will:
+ warn:
+ at:
+ second: ${_param:notfound}
+ three: ${one}
diff --git a/test/model/default/classes/third.yml b/test/model/default/classes/third.yml
new file mode 100644
index 0000000..135acd4
--- /dev/null
+++ b/test/model/default/classes/third.yml
@@ -0,0 +1,18 @@
+classes:
+- second
+
+parameters:
+ _param:
+ notfound: exist
+ myparam: ${_param:some}
+ will:
+ not:
+ fail:
+ at:
+ tree: ${_param:notfound}
+ three: ${two}
+ empty:
+ list: []
+ dict: {}
+ ~list_to_override: ${empty:list}
+ ~dict_to_override: ${empty:dict}
diff --git a/test/model/default/nodes/reclass.yml b/test/model/default/nodes/reclass.yml
new file mode 100644
index 0000000..94b7519
--- /dev/null
+++ b/test/model/default/nodes/reclass.yml
@@ -0,0 +1,3 @@
+
+classes:
+- third
diff --git a/test/model/default/reclass-config.yml b/test/model/default/reclass-config.yml
new file mode 100644
index 0000000..9d8f30f
--- /dev/null
+++ b/test/model/default/reclass-config.yml
@@ -0,0 +1 @@
+storage_type: yaml_fs