8000 Add Travis CI configuration file, .travis.yml · braincodec/unittest-cpp@76e9982 · GitHub
[go: up one dir, main page]

Skip to content

Commit 76e9982

Browse files
committed
Add Travis CI configuration file, .travis.yml
Builds using CMAKE then GCC and Clang, in Debug and Release configurations
1 parent 4b8d3a7 commit 76e9982

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: cpp
2+
3+
# Build with gcc and clang.
4+
compiler:
5+
- gcc
6+
- clang
7+
8+
# Build both debug and release configurations, through use of an environment variable in the build matrix.
9+
env:
10+
- CONFIGURATION=Debug
11+
- CONFIGURATION=Release
12+
13+
# Run cmake to generate makefiles in 'builds' directory.
14+
# No need to create it because it's part of the repo.
15+
# Pass along configuration type to cmake
16+
before_script:
17+
- cd builds && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=$CONFIGURATION ../ && cd ..
18+
19+
# Run make in the directory containing generated makefiles.
20+
script:
21+
- make -C builds

0 commit comments

Comments
 (0)
0