server/s/travis-build

17 lines
382 B
Text
Raw Normal View History

2014-10-14 22:11:49 +02:00
#!/bin/sh
2014-10-14 23:22:02 +02:00
inifile() {
2014-10-14 23:18:01 +02:00
if [ ! -e eressea.ini ]; then
cp conf/eressea.ini .
build/iniparser/inifile eressea.ini add lua:paths lunit:scripts
fi
2014-10-14 23:22:02 +02:00
}
2014-10-14 23:18:01 +02:00
2014-10-14 22:11:49 +02:00
[ -d build ] || mkdir build
cd build && cmake .. \
-DCMAKE_MODULE_PATH=$PWD/../cmake/Modules \
-DCMAKE_BUILD_TYPE=Debug .. && \
2014-10-14 23:22:02 +02:00
make && cd .. && inifile &&
2014-10-14 22:11:49 +02:00
build/eressea/test_eressea &&
build/eressea/eressea -v0 scripts/run-tests.lua