mirror of
https://github.com/unittest-cpp/unittest-cpp
synced 2026-09-26 16:19:30 +03:00
Add Travis CI configuration file, .travis.yml
Builds using CMAKE then GCC and Clang, in Debug and Release configurations
This commit is contained in:
parent
4b8d3a7418
commit
76e9982dd4
1 changed files with 21 additions and 0 deletions
21
.travis.yml
Normal file
21
.travis.yml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
language: cpp
|
||||
|
||||
# Build with gcc and clang.
|
||||
compiler:
|
||||
- gcc
|
||||
- clang
|
||||
|
||||
# Build both debug and release configurations, through use of an environment variable in the build matrix.
|
||||
env:
|
||||
- CONFIGURATION=Debug
|
||||
- CONFIGURATION=Release
|
||||
|
||||
# Run cmake to generate makefiles in 'builds' directory.
|
||||
# No need to create it because it's part of the repo.
|
||||
# Pass along configuration type to cmake
|
||||
before_script:
|
||||
- cd builds && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=$CONFIGURATION ../ && cd ..
|
||||
|
||||
# Run make in the directory containing generated makefiles.
|
||||
script:
|
||||
- make -C builds
|
||||
Loading…
Add table
Add a link
Reference in a new issue