forked from Cylix/cpp_redis
-
Notifications
You must be signed in to change notification settings - Fork 201
/
Copy path.travis.yml
50 lines (42 loc) · 960 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
language: cpp
compiler:
- clang
- gcc
cache: ccache
os:
- linux
- osx
services:
- redis-server
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- clang
before_install:
- source scripts/prepare.sh
install:
- source scripts/install-osx-dependencies.sh
- source scripts/install-cmake.sh
before_script:
- source scripts/start-redis.sh
# 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 '..'
- ls ${CMAKE_INSTALL_DIR}
- ls ${CMAKE_INSTALL_DIR}/bin
- env
- which cmake
- cmake --version
- cmake .. -DBUILD_TESTS=true -DBUILD_EXAMPLES=true
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
- GTEST_COLOR=1 ctest -VV