forked from koreader/koreader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (30 loc) · 1.19 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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:
- 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
install:
# nasm for building libpng
- 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
- travis_retry git clone https://github.com/Olivine-Labs/busted/
- cd busted && git checkout v1.10.0 && sudo luarocks make && cd ..
- travis_retry sudo luarocks install luacov
- travis_retry sudo luarocks install luacov-coveralls --server=http://rocks.moonscript.org/dev
script:
- travis_retry make fetchthirdparty all
- sudo cp base/build/*/luajit /usr/bin/
- make testfront
after_success:
- make coverage
- cd koreader-*/koreader && luacov-coveralls -v