Merge keys are specified here[1] for YAML 1.1. While not part of the YAML 1.2 specification, they're very useful and are supported in other implementations[2][3][4] that target 1.2. Support for merge keys is optional and disabled by default. It can be enabled by defining YAML_CPP_SUPPORT_MERGE_KEYS, either directly or by setting the CMake option YAML_CPP_SUPPORT_MERGE_KEYS=ON. [1]: http://yaml.org/type/merge.html [2]: https://github.com/go-yaml/yaml [3]: https://github.com/ruby/psych [4]: https://bitbucket.org/ruamel/yaml
32 lines
646 B
YAML
32 lines
646 B
YAML
language: c++
|
|
os:
|
|
- linux
|
|
- osx
|
|
compiler:
|
|
- clang
|
|
- gcc
|
|
env:
|
|
- YAML_CPP_SUPPORT_MERGE_KEYS=ON
|
|
- YAML_CPP_SUPPORT_MERGE_KEYS=OFF
|
|
before_install:
|
|
- |
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y \
|
|
&& sudo apt-get update -qq \
|
|
&& if [ "$CXX" == "g++" ]; then
|
|
sudo apt-get install -qq g++-4.7 && export CXX="g++-4.7" CC="gcc-4.7"
|
|
fi
|
|
fi
|
|
before_script:
|
|
- mkdir build
|
|
- cd build
|
|
- cmake .. -DYAML_CPP_SUPPORT_MERGE_KEYS=$YAML_CPP_SUPPORT_MERGE_KEYS
|
|
script:
|
|
- make
|
|
- test/run-tests
|
|
|
|
matrix:
|
|
exclude:
|
|
- os: linux
|
|
compiler: clang
|