forked from pubnub/c-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
76 lines (68 loc) · 1.75 KB
/
.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
dist: xenial
language: c
os: linux
_shared_unit_tests: &shared_unit_tests
script:
- cd "$TRAVIS_BUILD_DIR/core"
- make generate_report
- cd "$TRAVIS_BUILD_DIR/lib"
- make generate_report
_shared_integration_tests: &shared_integration_tests
before_script:
- cd "$TRAVIS_BUILD_DIR"
- make -f posix.mk
script:
- posix/pubnub_fntest
- openssl/pubnub_fntest
- cpp/fntest_runner
- cpp/openssl/fntest_runner
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pip install --user gcovr ; fi
before_script:
- git clone https://github.com/cgreen-devs/cgreen.git
- cd cgreen
- git checkout 1.4.1
- mkdir -p build
- cd build
- cmake -DCGREEN_INTERNAL_WITH_GCOV:BOOL=ON ..
- make -j2
- cd ../..
stages:
- name: "Unit tests"
- name: "Integration tests"
jobs:
include:
- stage: "Unit tests"
name: "[Linux] Unit tests (clang)"
os: linux
compiler: clang
<<: *shared_unit_tests
- name: "[Linux] Unit tests (GCC)"
os: linux
compiler: gcc
<<: *shared_unit_tests
- name: "[macOS] Unit tests (clang)"
os: osx
compiler: clang
<<: *shared_unit_tests
- name: "[macOS] Unit tests (GCC)"
os: osx
compiler: gcc
<<: *shared_unit_tests
- stage: "Integration tests"
name: "[Linux] Integration tests (clang)"
os: linux
compiler: clang
<<: *shared_integration_tests
- name: "[Linux] Integration tests (GCC)"
os: linux
compiler: gcc
<<: *shared_integration_tests
- name: "[macOS] Integration tests (clang)"
os: osx
compiler: clang
<<: *shared_integration_tests
- name: "[macOS] Integration tests (GCC)"
os: osx
compiler: gcc
<<: *shared_integration_tests