]> git.proxmox.com Git - ceph.git/blob - ceph/src/s3select/rapidjson/.travis.yml
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / s3select / rapidjson / .travis.yml
1 sudo: required
2 dist: xenial
3
4 language: cpp
5 cache:
6 - ccache
7
8 addons:
9 apt:
10 sources:
11 - ubuntu-toolchain-r-test
12 packages:
13 - cmake
14 - valgrind
15 - clang-8
16 env:
17 global:
18 - USE_CCACHE=1
19 - CCACHE_SLOPPINESS=pch_defines,time_macros
20 - CCACHE_COMPRESS=1
21 - CCACHE_MAXSIZE=100M
22 - ARCH_FLAGS_x86='-m32' # #266: don't use SSE on 32-bit
23 - ARCH_FLAGS_x86_64='-msse4.2' # use SSE4.2 on 64-bit
24 - ARCH_FLAGS_aarch64='-march=armv8-a'
25 - GITHUB_REPO='Tencent/rapidjson'
26 - secure: "HrsaCb+N66EG1HR+LWH1u51SjaJyRwJEDzqJGYMB7LJ/bfqb9mWKF1fLvZGk46W5t7TVaXRDD5KHFx9DPWvKn4gRUVkwTHEy262ah5ORh8M6n/6VVVajeV/AYt2C0sswdkDBDO4Xq+xy5gdw3G8s1A4Inbm73pUh+6vx+7ltBbk="
27
28 matrix:
29 include:
30 # gcc
31 - env: CONF=release ARCH=x86 CXX11=ON CXX17=OFF MEMBERSMAP=OFF
32 compiler: gcc
33 arch: amd64
34 - env: CONF=release ARCH=x86_64 CXX11=ON CXX17=OFF MEMBERSMAP=OFF
35 compiler: gcc
36 arch: amd64
37 - env: CONF=release ARCH=x86_64 CXX11=ON CXX17=OFF MEMBERSMAP=ON
38 compiler: gcc
39 arch: amd64
40 - env: CONF=debug ARCH=x86 CXX11=OFF CXX17=OFF MEMBERSMAP=OFF
41 compiler: gcc
42 arch: amd64
43 - env: CONF=debug ARCH=x86_64 CXX11=OFF CXX17=OFF MEMBERSMAP=OFF
44 compiler: gcc
45 arch: amd64
46 - env: CONF=debug ARCH=x86 CXX11=OFF CXX17=ON MEMBERSMAP=ON CXX_FLAGS='-D_GLIBCXX_DEBUG'
47 compiler: gcc
48 arch: amd64
49 - env: CONF=debug ARCH=x86_64 CXX11=OFF CXX17=ON MEMBERSMAP=ON CXX_FLAGS='-D_GLIBCXX_DEBUG'
50 compiler: gcc
51 arch: amd64
52 - env: CONF=release ARCH=aarch64 CXX11=ON CXX17=OFF MEMBERSMAP=OFF
53 compiler: gcc
54 arch: arm64
55 - env: CONF=release ARCH=aarch64 CXX11=OFF CXX17=OFF MEMBERSMAP=OFF
56 compiler: gcc
57 arch: arm64
58 - env: CONF=release ARCH=aarch64 CXX11=OFF CXX17=ON MEMBERSMAP=ON
59 compiler: gcc
60 arch: arm64
61 # clang
62 - env: CONF=release ARCH=x86 CXX11=ON CXX17=OFF MEMBERSMAP=ON CCACHE_CPP2=yes
63 compiler: clang
64 arch: amd64
65 - env: CONF=release ARCH=x86_64 CXX11=ON CXX17=OFF MEMBERSMAP=ON CCACHE_CPP2=yes
66 compiler: clang
67 arch: amd64
68 - env: CONF=release ARCH=x86_64 CXX11=ON CXX17=OFF MEMBERSMAP=OFF CCACHE_CPP2=yes
69 compiler: clang
70 arch: amd64
71 - env: CONF=debug ARCH=x86 CXX11=OFF CXX17=OFF MEMBERSMAP=ON CCACHE_CPP2=yes
72 compiler: clang
73 arch: amd64
74 - env: CONF=debug ARCH=x86_64 CXX11=OFF CXX17=OFF MEMBERSMAP=ON CCACHE_CPP2=yes
75 compiler: clang
76 arch: amd64
77 - env: CONF=debug ARCH=x86 CXX11=OFF CXX17=ON MEMBERSMAP=OFF CCACHE_CPP2=yes
78 compiler: clang
79 arch: amd64
80 - env: CONF=debug ARCH=x86_64 CXX11=OFF CXX17=ON MEMBERSMAP=OFF CCACHE_CPP2=yes
81 compiler: clang
82 arch: amd64
83 - env: CONF=debug ARCH=aarch64 CXX11=ON CXX17=OFF MEMBERSMAP=ON CCACHE_CPP2=yes
84 compiler: clang
85 arch: arm64
86 - env: CONF=debug ARCH=aarch64 CXX11=OFF CXX17=OFF MEMBERSMAP=ON CCACHE_CPP2=yes
87 compiler: clang
88 arch: arm64
89 - env: CONF=debug ARCH=aarch64 CXX11=OFF CXX17=ON MEMBERSMAP=OFF CCACHE_CPP2=yes
90 compiler: clang
91 arch: arm64
92 # coverage report
93 - env: CONF=debug ARCH=x86 GCOV_FLAGS='--coverage' CXX_FLAGS='-O0' CXX11=OFF CXX17=OFF
94 compiler: gcc
95 arch: amd64
96 cache:
97 - ccache
98 - pip
99 after_success:
100 - pip install --user cpp-coveralls
101 - coveralls -r .. --gcov-options '\-lp' -e thirdparty -e example -e test -e build/CMakeFiles -e include/rapidjson/msinttypes -e include/rapidjson/internal/meta.h -e include/rapidjson/error/en.h
102 - env: CONF=debug ARCH=x86_64 GCOV_FLAGS='--coverage' CXX_FLAGS='-O0' CXX11=ON CXX17=OFF MEMBERSMAP=ON
103 compiler: gcc
104 arch: amd64
105 cache:
106 - ccache
107 - pip
108 after_success:
109 - pip install --user cpp-coveralls
110 - coveralls -r .. --gcov-options '\-lp' -e thirdparty -e example -e test -e build/CMakeFiles -e include/rapidjson/msinttypes -e include/rapidjson/internal/meta.h -e include/rapidjson/error/en.h
111 - env: CONF=debug ARCH=aarch64 GCOV_FLAGS='--coverage' CXX_FLAGS='-O0' CXX11=OFF CXX17=ON
112 compiler: gcc
113 arch: arm64
114 cache:
115 - ccache
116 - pip
117 after_success:
118 - pip install --user cpp-coveralls
119 - coveralls -r .. --gcov-options '\-lp' -e thirdparty -e example -e test -e build/CMakeFiles -e include/rapidjson/msinttypes -e include/rapidjson/internal/meta.h -e include/rapidjson/error/en.h
120 - script: # Documentation task
121 - cd build
122 - cmake .. -DRAPIDJSON_HAS_STDSTRING=ON -DCMAKE_VERBOSE_MAKEFILE=ON
123 - make travis_doc
124 cache: false
125 addons:
126 apt:
127 packages:
128 - doxygen
129
130 before_install:
131 - if [ "x86_64" = "$(arch)" ]; then sudo apt-get install -y g++-multilib libc6-dbg:i386 --allow-unauthenticated; fi
132
133 before_script:
134 # travis provides clang-7 for amd64 and clang-3.8 for arm64
135 # here use clang-8 to all architectures as clang-7 is not available for arm64
136 - if [ -f /usr/bin/clang++-8 ]; then
137 sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-8 1000;
138 sudo update-alternatives --config clang++;
139 export PATH=/usr/bin:$PATH;
140 fi
141 - if [ "$CXX" = "clang++" ]; then export CCACHE_CPP2=yes; fi
142 - ccache -s
143 # hack to avoid Valgrind bug (https://bugs.kde.org/show_bug.cgi?id=326469),
144 # exposed by merging PR#163 (using -march=native)
145 # TODO: Since this bug is already fixed. Remove this when valgrind can be upgraded.
146 - sed -i "s/-march=native//" CMakeLists.txt
147 - mkdir build
148
149 script:
150 - if [ "$CXX" = "clang++" ]; then export CXXFLAGS="-stdlib=libc++ ${CXXFLAGS}"; fi
151 - >
152 eval "ARCH_FLAGS=\${ARCH_FLAGS_${ARCH}}" ;
153 (cd build && cmake
154 -DRAPIDJSON_HAS_STDSTRING=ON
155 -DRAPIDJSON_USE_MEMBERSMAP=$MEMBERSMAP
156 -DRAPIDJSON_BUILD_CXX11=$CXX11
157 -DRAPIDJSON_BUILD_CXX17=$CXX17
158 -DCMAKE_VERBOSE_MAKEFILE=ON
159 -DCMAKE_BUILD_TYPE=$CONF
160 -DCMAKE_CXX_FLAGS="$ARCH_FLAGS $GCOV_FLAGS $CXX_FLAGS"
161 -DCMAKE_EXE_LINKER_FLAGS=$GCOV_FLAGS
162 ..)
163 - cd build
164 - make tests -j 2
165 - make examples -j 2
166 - ctest -j 2 -V `[ "$CONF" = "release" ] || echo "-E perftest"`