0.4 测试环境
- Travis( https://travis-ci.org )用于GNU/Linux和macOS
- Appveyor( )用于Windows
CI服务的配置文件可以在示例库中找到( https://github.com/dev-cafe/cmake-cookbook/ ):
- Travis的配置文件为
- Appveyor的配置文件为
.appveyor.yml
- Travis和Appveyor的其他安装脚本,可以在文件夹中找到。
测试机制是一组Python脚本,包含在testing
文件夹中。脚本collect_tests.py
将运行测试并报告它们的状态。示例也可以单独测试,也可以批量测试;接受正则表达式作为命令行输入,例如:
$ env VERBOSE_OUTPUT=ON pipenv run python testing/collect_tests.py 'chapter-*/recipe-*'