使用庫存 CMake 配置 Travis CI
Travis CI 預裝了 CMake 2.8.7。
用於源外構建的最小 .travis.yml
指令碼
language: cpp
compiler:
- gcc
before_script:
# create a build folder for the out-of-source build
- mkdir build
# switch to build directory
- cd build
# run cmake; here we assume that the project's
# top-level CMakeLists.txt is located at '..'
- cmake ..
script:
# once CMake has done its job we just build using make as usual
- make
# if the project uses ctest we can run the tests like this
- make test