forked from RedisInsight/RedisDesktopManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (42 loc) · 1.09 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
language: cpp
dist: trusty
sudo: required
os:
- linux
- osx
install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update > /dev/null
&& brew install qt5 > /dev/null
&& export PATH=/usr/local/opt/qt5/bin/:$PATH
;
fi
- cd ./src && ./configure && cd ./../
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
source /opt/qt59/bin/qt59-env.sh
;
fi
- qmake -v
script:
- git submodule update --init --recursive
- cd ./tests
- qmake DEFINES+=INTEGRATION_TESTS && make -s -j 2
- ./../bin/tests/tests -platform minimal -txt
- ./../bin/tests/qml_tests -platform minimal -txt
- cd ./../src
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
qmake && make -s -j 2
;
fi
after_success:
- cd ./../tests
- sudo pip install --upgrade cpp-coveralls
- coveralls -b `pwd`/unit_tests/ -r `readlink -m ./../` -e 3rdparty/ -e tests/ -E .+/moc_.* -E .+/qrc_.* -E .+/qxt.* -E .+/ui_.*
services:
- redis-server
notifications:
recipients:
email:
on_success: change
on_failure: change