add travis check

This commit is contained in:
rubo77 2017-07-07 01:05:28 +02:00
parent d72a1ea9c6
commit 3069608b3a
2 changed files with 21 additions and 0 deletions

14
.travis.yml Normal file
View File

@ -0,0 +1,14 @@
language: bash
addons:
apt:
packages:
- lua5.1
- luarocks
install:
- eval $(luarocks path --bin)
- luarocks install --local lua-cjson
script:
- bash tests/validate_site.sh

7
tests/validate_site.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
# checks if the site.conf is a valid lua dict
GLUON_SITEDIR="docs/site-example" lua5.1 scripts/site_config.lua
bash -n scripts/*.sh