fix eressea.ini for travis, again

This commit is contained in:
Enno Rehling 2014-10-14 23:22:02 +02:00
parent e1b1f9e03f
commit 9742ee265f
1 changed files with 3 additions and 1 deletions

View File

@ -1,14 +1,16 @@
#!/bin/sh #!/bin/sh
inifile() {
if [ ! -e eressea.ini ]; then if [ ! -e eressea.ini ]; then
cp conf/eressea.ini . cp conf/eressea.ini .
build/iniparser/inifile eressea.ini add lua:paths lunit:scripts build/iniparser/inifile eressea.ini add lua:paths lunit:scripts
fi fi
}
[ -d build ] || mkdir build [ -d build ] || mkdir build
cd build && cmake .. \ cd build && cmake .. \
-DCMAKE_MODULE_PATH=$PWD/../cmake/Modules \ -DCMAKE_MODULE_PATH=$PWD/../cmake/Modules \
-DCMAKE_BUILD_TYPE=Debug .. && \ -DCMAKE_BUILD_TYPE=Debug .. && \
make && cd .. && make && cd .. && inifile &&
build/eressea/test_eressea && build/eressea/test_eressea &&
build/eressea/eressea -v1 scripts/run-tests.lua build/eressea/eressea -v1 scripts/run-tests.lua