代码拉取完成,页面将自动刷新
language: cpp
dist: bionic
sudo: required
os:
- linux
- osx
addons:
apt:
sources:
- ppa:chris-lea/redis-server
packages:
- redis-tools
- redis-server
services:
- redis-server
install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update > /dev/null
&& brew install qt5 > /dev/null
&& brew install openssl > /dev/null
&& export PATH=/usr/local/opt/qt5/bin/:$PATH
;
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo apt-get install qt5-default qtdeclarative5-dev libqt5charts5-dev libssl1.0-dev -y
;
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。