forked from RedisInsight/RedisDesktopManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (48 loc) · 1.36 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
38
39
40
41
42
43
44
45
46
47
48
language: cpp
compiler:
- gcc
before_install:
- sudo add-apt-repository --yes ppa:beineri/opt-qt511
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
- sudo apt-get install qt51base qt51imageformats qt51tools qt51xmlpatterns qt51x11extras -y -qq
- uname -m
- export QTDIR=/opt/qt51
- export PATH=$QTDIR/bin:$PATH
- export LD_LIBRARY_PATH=$QTDIR/lib/:$QTDIR/lib/`uname -m`-linux-gnu:$LD_LIBRARY_PATH
- sudo apt-get install libssl1.0.0 -y -qq
- sudo sh ./vagrant-provision/build_automake.sh
- sudo apt-get install gcc-4.7 g++-4.7 gdb -y -qq
- sudo rm -f /usr/bin/gcc
- sudo rm -f /usr/bin/g++
- sudo rm -f /usr/bin/gcov
- sudo ln -s /usr/bin/gcc-4.7 /usr/bin/gcc
- sudo ln -s /usr/bin/g++-4.7 /usr/bin/g++
- sudo ln -s /usr/bin/gcov-4.7 /usr/bin/gcov
before_script:
- cd ./redis-desktop-manager
- sudo chmod 777 configure
- ./configure > /dev/null
script:
- qmake -v
- qmake
- make -s
- cd ./../crashreporter/
- qmake
- make -s
- cd ./../tests/
- qmake
- make -s
- ./../bin/tests/tests -platform minimal -txt
after_success:
- sudo pip install cpp-coveralls --use-mirrors
- sudo sh ./coverage.sh
- coveralls --exclude-pattern '.*\.h' --no-gcov
services:
- redis-server
notifications:
recipients:
email:
on_success: change
on_failure: always