2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
koreader/.travis.yml

38 lines
1.2 KiB
YAML
Raw Normal View History

2014-05-31 09:38:01 +00:00
# Travis-CI Build for koreader
# see travis-ci.org for details
language: c
compiler:
- gcc
env:
- EMULATE_READER=1 USE_NO_CCACHE=1
before_install:
2015-03-31 14:38:59 +00:00
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
- sudo apt-get install -qq g++-4.8
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
2014-05-31 09:38:01 +00:00
install:
# nasm for building libpng
2014-10-23 07:33:46 +00:00
- sudo apt-get install libsdl1.2-dev luarocks nasm
# install an older version of lua_cliargs for busted v1.10.0
- sudo luarocks install lua_cliargs 2.1-2
# recent versions of busted may cause some weird segmentation faults
2015-04-27 00:59:47 +00:00
- travis_retry git clone https://github.com/Olivine-Labs/busted/
- cd busted && git checkout v1.10.0 && sudo luarocks make && cd ..
2015-04-27 00:59:47 +00:00
- travis_retry sudo luarocks install luacov
- travis_retry sudo luarocks install luacov-coveralls --server=http://rocks.moonscript.org/dev
2014-05-31 09:38:01 +00:00
script:
2015-04-27 00:59:47 +00:00
- travis_retry make fetchthirdparty all
2014-10-06 14:28:55 +00:00
- sudo cp base/build/*/luajit /usr/bin/
2014-05-31 09:38:01 +00:00
- make testfront
after_success:
- make coverage
- cd koreader-*/koreader && luacov-coveralls -v