Merge pull request #1789 from houqp/houqp-master

fix travis build
pull/1793/head
Huang Xin 8 years ago
commit 8d6ac4bc51

@ -23,7 +23,6 @@ addons:
packages:
- g++-4.8
- libsdl1.2-dev
- luarocks
# for luasec
- libssl1.0.0
- nasm
@ -42,10 +41,19 @@ before_install:
- export PATH=$PWD/bin:$PATH
install:
# install our own updated luarocks
- git clone https://github.com/torch/luajit-rocks.git
- pushd luajit-rocks
- git checkout 6529891
- cmake . -DWITH_LUA52=ON -DCMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/install
- make install
- popd
- export PATH=$PATH:${TRAVIS_BUILD_DIR}/install/bin
- mkdir $HOME/.luarocks
- cp /etc/luarocks/config.lua $HOME/.luarocks/config.lua
- 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 ansicolors
- travis_retry luarocks --local install luafilesystem
- travis_retry luarocks --local install busted 2.0.rc11-0
#- travis_retry luarocks --local install busted 1.11.1-1
#- mv -f $HOME/.luarocks/bin/busted_bootstrap $HOME/.luarocks/bin/busted
@ -55,11 +63,12 @@ install:
- travis_retry luarocks --local install luacov-coveralls --server=http://rocks.moonscript.org/dev
# add local rocks to $PATH
# on newer luarocks, `luarocks path --bin` would suffice because it includes the PATH now
- luarocks path --bin
- eval $(luarocks path --bin)
- export PATH=$PATH:$HOME/.luarocks/bin
script:
- travis_retry make fetchthirdparty all
- travis_retry make fetchthirdparty
- make all
- make testfront
after_success:

@ -90,9 +90,8 @@ endif
$(KOR_BASE)/$(OUTPUT_DIR)/luajit:
$(MAKE) -C $(KOR_BASE)
$(INSTALL_DIR)/koreader/.busted:
test -e $(INSTALL_DIR)/koreader/.busted || \
ln -sf ../../.busted $(INSTALL_DIR)/koreader
$(INSTALL_DIR)/koreader/.busted: .busted
ln -sf ../../.busted $(INSTALL_DIR)/koreader
$(INSTALL_DIR)/koreader/.luacov:
test -e $(INSTALL_DIR)/koreader/.luacov || \

@ -1 +1 @@
Subproject commit 8b751543a9292315fedc6d6e95fcf333bbd4f7e9
Subproject commit fe0a527ddb8918127917b244c8c2ceb54b6a2705

@ -206,6 +206,11 @@ OPTIONS:
setup_env
fi
if [ ! -d ${EMU_DIR} ]; then
echo "Failed to find emulator directory! Please try build command first."
exit 1
fi
echo "[*] Running KOReader..."
pushd ${EMU_DIR}

Loading…
Cancel
Save