Merge pull request #1789 from houqp/houqp-master

fix travis build
This commit is contained in:
Huang Xin
2016-02-04 14:23:06 +08:00
4 changed files with 21 additions and 8 deletions

View File

@@ -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:

View File

@@ -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 || \

2
base

Submodule base updated: 8b751543a9...fe0a527ddb

5
kodev
View File

@@ -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}