Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/3rdparty/qtpromise/qtpromise-0.5.0/.travis.yml
- This file was added.
1 | sudo: required | ||||
---|---|---|---|---|---|
2 | dist: trusty | ||||
3 | language: cpp | ||||
4 | compiler: gcc | ||||
5 | | ||||
6 | before_install: | ||||
7 | - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | ||||
8 | - sudo add-apt-repository -y ppa:beineri/opt-qt563-trusty | ||||
9 | - sudo apt-get update -qq | ||||
10 | | ||||
11 | install: | ||||
12 | - sudo apt-get install -qq gcc-4.9 g++-4.9 | ||||
13 | - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 90 | ||||
14 | - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 90 | ||||
15 | - sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.9 90 | ||||
16 | - sudo apt-get install -qq qt56base | ||||
17 | - source /opt/qt56/bin/qt56-env.sh | ||||
18 | - wget http://archive.ubuntu.com/ubuntu/pool/universe/l/lcov/lcov_1.13.orig.tar.gz | ||||
19 | - tar xf lcov_1.13.orig.tar.gz | ||||
20 | - cd lcov-1.13/ | ||||
21 | - sudo make install | ||||
22 | - cd .. | ||||
23 | | ||||
24 | before_script: | ||||
25 | - qmake --version | ||||
26 | - lcov --version && gcov --version | ||||
27 | - gcc --version && g++ --version | ||||
28 | | ||||
29 | script: | ||||
30 | - qmake qtpromise.pro CONFIG+=coverage | ||||
31 | - make -j4 | ||||
32 | - make check --quiet | ||||
33 | - lcov -capture --directory . --o coverage.info | ||||
34 | - lcov -e coverage.info '**/src/**/*' -o coverage.info | ||||
35 | | ||||
36 | after_success: | ||||
37 | - bash <(curl -s https://codecov.io/bash) -f coverage.info |