This commit is contained in:
Ruben Barkow 2017-07-06 23:53:33 +00:00 committed by GitHub
commit d5d2f9814c
2 changed files with 40 additions and 0 deletions

26
.travis.yml Normal file
View File

@ -0,0 +1,26 @@
language: bash
addons:
apt:
packages:
- lua5.1
- luarocks
- git
- make
- gcc
- g++
- unzip
- libncurses5-dev
- zlib1g-dev
- subversion
- gawk
- bzip2
- libssl-dev
- wget
install:
- eval $(luarocks path --bin)
- luarocks install --local lua-cjson
script:
- bash tests/validate_site.sh

14
tests/validate_site.sh Normal file
View File

@ -0,0 +1,14 @@
#!/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
cp -a docs/site-example site
TARGET=ar71xx-generic
make update GLUON_TARGET=$TARGET
make clean GLUON_TARGET=$TARGET
make GLUON_TARGET=$TARGET