2017-05-26 16:29:58 +08:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
language: cpp
|
|
|
|
compiler: gcc
|
|
|
|
|
|
|
|
before_install:
|
2018-05-18 03:57:07 +08:00
|
|
|
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
|
|
|
- sudo add-apt-repository -y ppa:beineri/opt-qt563-trusty
|
2017-05-26 16:29:58 +08:00
|
|
|
- sudo apt-get update -qq
|
|
|
|
|
|
|
|
install:
|
2018-05-18 03:57:07 +08:00
|
|
|
- sudo apt-get install -qq gcc-4.9 g++-4.9
|
2019-02-25 01:26:20 +08:00
|
|
|
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 90
|
|
|
|
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 90
|
|
|
|
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.9 90
|
2018-05-18 03:57:07 +08:00
|
|
|
- sudo apt-get install -qq qt56base
|
|
|
|
- source /opt/qt56/bin/qt56-env.sh
|
2017-05-26 16:29:58 +08:00
|
|
|
- wget http://archive.ubuntu.com/ubuntu/pool/universe/l/lcov/lcov_1.13.orig.tar.gz
|
|
|
|
- tar xf lcov_1.13.orig.tar.gz
|
|
|
|
- cd lcov-1.13/
|
|
|
|
- sudo make install
|
|
|
|
- cd ..
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- qmake --version
|
2018-09-10 02:51:11 +08:00
|
|
|
- lcov --version && gcov --version
|
2018-05-18 03:57:07 +08:00
|
|
|
- gcc --version && g++ --version
|
2017-05-26 16:29:58 +08:00
|
|
|
|
|
|
|
script:
|
|
|
|
- qmake qtpromise.pro CONFIG+=coverage
|
|
|
|
- make -j4
|
2017-06-04 16:29:41 +08:00
|
|
|
- make check --quiet
|
2017-05-26 16:29:58 +08:00
|
|
|
- lcov -capture --directory . --o coverage.info
|
|
|
|
- lcov -e coverage.info '**/src/**/*' -o coverage.info
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash) -f coverage.info
|