mirror of
https://github.com/koreader/koreader
synced 2024-11-16 06:12:56 +00:00
9ab005a1d3
and have more confidence with the unit testing framework. Now `make testfront` won't retry on failure and testing files are ordered in each run so that it's possible to reproduce testing failure. And this patch also fix flush settings not working before suspend issue: at some point the `FlushSettings` event is sent to `UIManager` instead of `ReaderUI`, but `UIManager` only delegated events to active widgets and `ReaderUI` is actually not an active widgets thus will miss the event. This patch also add a verbose debug mode with "-v" as a switch to turn on this mode. With verbose mode on, event handling will be logged.
28 lines
1.1 KiB
Bash
Executable File
28 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
CI_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
source "${CI_DIR}/common.sh"
|
|
|
|
# install our own updated luarocks
|
|
git clone https://github.com/torch/luajit-rocks.git
|
|
pushd luajit-rocks
|
|
git checkout 6529891
|
|
cmake . -DWITH_LUAJIT21=ON -DCMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/install
|
|
make install
|
|
popd
|
|
|
|
mkdir $HOME/.luarocks
|
|
cp ${TRAVIS_BUILD_DIR}/install/etc/luarocks/config.lua $HOME/.luarocks/config.lua
|
|
echo "wrap_bin_scripts = false" >> $HOME/.luarocks/config.lua
|
|
travis_retry luarocks --local install luafilesystem
|
|
# for verbose_print module
|
|
travis_retry luarocks --local install ansicolors
|
|
travis_retry luarocks --local install busted 2.0.rc12-1
|
|
#- mv -f $HOME/.luarocks/bin/busted_bootstrap $HOME/.luarocks/bin/busted
|
|
travis_retry luarocks --local install luacov
|
|
# luasec doesn't automatically detect 64-bit libs
|
|
travis_retry luarocks --local install luasec OPENSSL_LIBDIR=/usr/lib/x86_64-linux-gnu
|
|
travis_retry luarocks --local install luacov-coveralls --server=http://rocks.moonscript.org/dev
|
|
travis_retry luarocks --local install luacheck
|
|
travis_retry luarocks --local install lanes # for parallel luacheck
|