-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
116 lines (106 loc) · 4.02 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
language: cpp
dist: focal
jobs:
include:
- os: linux
compiler: clang
env: QT=5
addons:
apt:
packages: [ cppcheck, doxygen, graphviz, lcov, libgrantlee5-dev, qtbase5-dev, libqt5xmlpatterns5-dev ]
- os: linux
compiler: gcc
env: QT=5
addons:
apt:
packages: [ cppcheck, doxygen, graphviz, lcov, libgrantlee5-dev, qtbase5-dev, libqt5xmlpatterns5-dev ]
- os: linux
compiler: clang
env: QT=512
addons:
apt:
packages: [ cppcheck, doxygen, graphviz, lcov, libgrantlee5-dev, qt512base, qt512xmlpatterns ]
sources: [ sourceline: 'ppa:beineri/opt-qt-5.12.9-focal' ]
- os: linux
compiler: gcc
env: QT=512
addons:
apt:
packages: [ cppcheck, doxygen, graphviz, lcov, libgrantlee5-dev, qt512base, qt512xmlpatterns ]
sources: [ sourceline: 'ppa:beineri/opt-qt-5.12.9-focal' ]
- os: linux
compiler: clang
env: QT=514
addons:
apt:
packages: [ cppcheck, doxygen, graphviz, lcov, libgrantlee5-dev, qt514base, qt514xmlpatterns ]
sources: [ sourceline: 'ppa:beineri/opt-qt-5.14.2-focal' ]
- os: linux
compiler: gcc
env: QT=514
addons:
apt:
packages: [ cppcheck, doxygen, graphviz, lcov, libgrantlee5-dev, qt514base, qt514xmlpatterns ]
sources: [ sourceline: 'ppa:beineri/opt-qt-5.14.2-focal' ]
- os: linux
compiler: clang
env: QT=515
addons:
apt:
packages: [ cppcheck, doxygen, graphviz, lcov, libgrantlee5-dev, qt515base, qt515xmlpatterns ]
sources: [ sourceline: 'ppa:beineri/opt-qt-5.15.0-focal' ]
- os: linux
compiler: gcc
env: QT=515
addons:
apt:
packages: [ cppcheck, doxygen, graphviz, lcov, libgrantlee5-dev, qt515base, qt515xmlpatterns ]
sources: [ sourceline: 'ppa:beineri/opt-qt-5.15.0-focal' ]
- os: osx
compiler: clang
addons: { homebrew: { packages: [ cppcheck, doxygen, graphviz, qt ], update: true } }
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "YlZmQnVY0FCZ0jwXlHB/vqdfSFgHRyGWZej6oEC9YQyhXSiiz4C2zEVW6RuHQT6OPWsehDsjNFBBJyGsJIX8xp1Z5Y2n8YhVPsv6fLFiz0AF5WrJXhycC4Gz174CqPT6vSTZ42KmSrXqPE6fpH1mZNSFBwXrTmhwWcjLlbWvnmo="
addons:
coverity_scan:
project:
name: "pcolby/aws-sdk-qt"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: >
cp -a "$TRAVIS_BUILD_DIR" "$TRAVIS_BUILD_DIR-scan" &&
pushd "$TRAVIS_BUILD_DIR-scan" &&
qmake -qt=qt5 -Wall -Wlogic -Wparser CONFIG+=debug_and_release
build_command: make all
branch_pattern: coverity
before_install:
install:
- '[ "$TRAVIS_OS_NAME" != linux ] || gem install lcoveralls'
before_script:
#- cppcheck --error-exitcode=1 --quiet
# --suppress=syntaxError:test/unit/src/core/testawsabstractresponse.cpp
# code-generation/src src test
- '[[ "$TRAVIS_OS_NAME" != linux || "$QT" != 5?* ]] || . /opt/qt$QT/bin/qt$QT-env.sh'
- mkdir -p "$TRAVIS_BUILD_DIR-build"
- cmake -B "$TRAVIS_BUILD_DIR-build" -S "$TRAVIS_BUILD_DIR" -L
script:
- make -C "$TRAVIS_BUILD_DIR-build" -j2 codegen all
#- make -C "$TRAVIS_BUILD_DIR-build" -j2 check TESTARGS=-silent
after_success:
# Generate LCOV coverage reports
- make -C "$TRAVIS_BUILD_DIR-build/test/unit/all" coverage
- sed -i -e "s|^SF:/home/travis/build/aws-sdk-qt|SF:$TRAVIS_BUILD_DIR|"
"$TRAVIS_BUILD_DIR-build/release/unit-test-all-tmp/coverage.info"
# Report code coverage to coveralls.io
- lcoveralls --retry-count 5
"$TRAVIS_BUILD_DIR-build/release/unit-test-all-tmp/coverage.info"
# Report code coverage to codecov.io
- curl https://codecov.io/bash > /tmp/codecov.sh
- bash /tmp/codecov.sh -f "$TRAVIS_BUILD_DIR-build/release/unit-test-all-tmp/coverage.info"
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/fbd7a436c2f67325cffc