rapidjson/.travis.yml

45 lines
1.2 KiB
YAML
Raw Normal View History

language: cpp
compiler:
- clang
- gcc
env:
2014-07-08 02:54:35 +08:00
matrix:
- CONF=debug ARCH=x86_64
- CONF=release ARCH=x86_64
- CONF=debug ARCH=x86
- CONF=release ARCH=x86
2014-07-08 02:54:35 +08:00
global:
- ARCH_FLAGS_x86='-m32'
- ARCH_FLAGS_x86_64=''
- GITHUB_REPO='miloyip/rapidjson'
2014-07-12 18:24:32 +08:00
- secure: "HrsaCb+N66EG1HR+LWH1u51SjaJyRwJEDzqJGYMB7LJ/bfqb9mWKF1fLvZGk46W5t7TVaXRDD5KHFx9DPWvKn4gRUVkwTHEy262ah5ORh8M6n/6VVVajeV/AYt2C0sswdkDBDO4Xq+xy5gdw3G8s1A4Inbm73pUh+6vx+7ltBbk="
before_install:
- sudo apt-get update -qq
2014-11-12 01:57:25 +02:00
- sudo apt-get install -qq cmake doxygen valgrind
- if [ "$ARCH" = "x86" ]; then sudo apt-get install -qq g++-multilib libc6-dbg:i386; fi
install: true
before_script:
# hack to avoid Valgrind bug (https://bugs.kde.org/show_bug.cgi?id=326469),
# exposed by merging PR#163 (using -march=native)
- sed -i 's/march=native/msse4.2/' CMakeLists.txt
2014-11-12 01:57:25 +02:00
- mkdir build
- >
2015-03-10 21:15:41 +01:00
eval "ARCH_FLAGS=\${ARCH_FLAGS_${ARCH}}" ;
2014-11-12 01:57:25 +02:00
(cd build && cmake
-DRAPIDJSON_HAS_STDSTRING=ON
-DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_BUILD_TYPE=$CONF
-DCMAKE_C_FLAGS="$ARCH_FLAGS" ..)
script:
2014-11-12 01:57:25 +02:00
- cd build
- make tests
- make examples
- ctest -V `[ "$CONF" = "release" ] || echo "-E perftest"`
2014-11-12 01:57:25 +02:00
- make travis_doc