forked from nanomsg/nng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
122 lines (114 loc) · 3.17 KB
/
config.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# TODO: create custom docker images for each of these environments
# to avoid re-downloading & installing dependencies each time
version: 2.0
jobs:
"clang - build, test":
docker:
- image: ubuntu:16.04
environment:
CC: clang-6.0
CXX: clang++-6.0
CLANG_FORMAT: clang-format-6.0
CTEST_OUTPUT_ON_FAILURE: 1
steps:
- checkout
- run: apt-get update -qq
- run: apt-get install -y software-properties-common
# llvm apt details: https://apt.llvm.org
- run: apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main"
- run: apt-get update -qq
- run: >
apt-get install -y --allow-unauthenticated
build-essential
asciidoctor
cmake
libmbedtls-dev
ninja-build
clang-6.0
clang-format-6.0
- run: ./etc/format-check.sh
- run: ./.circleci/build-and-test.sh
"gcc - static":
docker:
- image: ubuntu:16.04
environment:
CC: gcc
CXX: g++
SHARED_LIBS: OFF
CTEST_OUTPUT_ON_FAILURE: 1
steps:
- checkout
- run: apt-get update -qq
- run: apt-get install -y software-properties-common
- run: add-apt-repository ppa:ubuntu-toolchain-r/test
- run: apt-get update -qq
- run: >
apt-get install -y --allow-unauthenticated
build-essential
cmake
libmbedtls-dev
ninja-build
- run: ./.circleci/build-and-test.sh
"gcc - demos":
docker:
- image: ubuntu:16.04
environment:
CC: gcc
CXX: g++
CTEST_OUTPUT_ON_FAILURE: 1
steps:
- checkout
- run: apt-get update -qq
- run: apt-get install -y software-properties-common
- run: add-apt-repository ppa:ubuntu-toolchain-r/test
- run: apt-get update -qq
- run: >
apt-get install -y --allow-unauthenticated
build-essential
cmake
libmbedtls-dev
ninja-build
- run: ./.circleci/run-cmake.sh
- run: ninja -C build
- run: ninja -C build install
- run: ./.circleci/build-demos.sh
"gcc - build, test, coverage":
docker:
- image: ubuntu:16.04
environment:
CC: gcc-8
CXX: g++-8
COVERAGE: "ON"
GCOV: gcov-8
CTEST_OUTPUT_ON_FAILURE: 1
steps:
- checkout
- run: apt-get update -qq
- run: apt-get install -y software-properties-common
- run: add-apt-repository ppa:ubuntu-toolchain-r/test
- run: apt-get update -qq
- run: >
apt-get install -y --allow-unauthenticated
build-essential
curl
asciidoctor
cmake
libmbedtls-dev
ninja-build
gcc-8
g++-8
- run: ./.circleci/build-and-test.sh
- run: ./etc/codecov.sh
workflows:
version: 2
build_and_test:
jobs:
- "clang - build, test"
- "gcc - static"
- "gcc - build, test, coverage"
- "gcc - demos"
#notify:
# webhooks:
# # A list of hook hashes, containing the url field
# # gitter hook
# - url: ${GITTER_WEBHOOK}