server/s/travis-build

20 lines
574 B
Plaintext
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 &&
2015-05-21 13:18:52 +02:00
build/eressea/eressea -v0 scripts/run-tests.lua &&
build/eressea/eressea -v0 scripts/run-tests-e2.lua &&
build/eressea/eressea -v0 scripts/run-tests-e3.lua &&
(cd tests ; valgrind ../build/eressea/eressea -v0 -t184 ../scripts/reports.lua )