mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
17
.travis.yml
17
.travis.yml
@@ -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:
|
||||
|
||||
5
Makefile
5
Makefile
@@ -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
2
base
Submodule base updated: 8b751543a9...fe0a527ddb
Reference in New Issue
Block a user