forked from RedisInsight/RedisDesktopManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (38 loc) · 1.01 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
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
- pushd src && ./configure && popd
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
source /opt/qt59/bin/qt59-env.sh
;
fi
- qmake -v
script:
- git submodule update --init --recursive
- pushd tests
- qmake DEFINES+=INTEGRATION_TESTS && make -s -j 2
- ./../bin/tests/tests -platform minimal -txt
- popd
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
pushd src && qmake && make -s -j 2 && popd
;
fi
after_success:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
pushd 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_.*
;
fi
services:
- redis-server