forked from istio/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
128 lines (119 loc) · 4.98 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
122
123
124
125
126
127
128
version: 2.1
executors:
ubuntu-build:
description: "A regular build executor based on ubuntu image"
docker:
# NOTE: Update bazel/toolchains/rbe_toolchains_config.bzl with sha256 digest to match the image here.
- image: piotrsikora/envoy-build-ubuntu@sha256:e2775df4cf57e86920ca39886a877b4ccc12dbcfaa2a7c2a804f4cb83c797952
resource_class: xlarge
working_directory: /source
jobs:
release:
executor: ubuntu-build
environment:
BAZEL_BUILD_EXTRA_OPTIONS: "--local_ram_resources=8192 --local_cpu_resources=6 --define wasm=enabled" # v8 + WAVM (build only)
steps:
- run: rm -rf /home/circleci/project/.git # CircleCI git caching is likely broken
- checkout
- run: ci/do_circle_ci.sh bazel.release.server_only
- store_artifacts:
path: /build/envoy/generated
destination: /
all_tests:
executor: ubuntu-build
environment:
BAZEL_BUILD_EXTRA_OPTIONS: "--local_ram_resources=8192 --local_cpu_resources=6 --flaky_test_attempts=5"
steps:
- run: rm -rf /home/circleci/project/.git # CircleCI git caching is likely broken
- checkout
- restore_cache:
keys:
- tests-bazel-cache-{{ checksum "WORKSPACE" }}-{{ checksum "bazel/repository_locations.bzl" }}
- run: ci/do_circle_ci.sh bazel.dev
- save_cache:
key: tests-bazel-cache-{{ checksum "WORKSPACE" }}-{{ checksum "bazel/repository_locations.bzl" }}
paths:
- /home/circleci/.cache/bazel
when: always # Save cache even when some tests fail.
asan:
executor: ubuntu-build
environment:
BAZEL_BUILD_EXTRA_OPTIONS: "--local_ram_resources=8192 --local_cpu_resources=6"
BAZEL_TEST_TARGETS: "//test/extensions/access_loggers/wasm/... //test/extensions/filters/http/wasm/... //test/extensions/filters/network/wasm/... //test/extensions/wasm/... //test/extensions/common/wasm/..."
steps:
- run: rm -rf /home/circleci/project/.git # CircleCI git caching is likely broken
- checkout
- run: ci/do_circle_ci.sh bazel.asan ${BAZEL_TEST_TARGETS}
- store_artifacts:
path: /build/envoy/generated
destination: /
tsan:
executor: ubuntu-build
environment:
BAZEL_BUILD_EXTRA_OPTIONS: "--local_ram_resources=8192 --local_cpu_resources=6"
BAZEL_TEST_TARGETS: "//test/extensions/access_loggers/wasm/... //test/extensions/filters/http/wasm/... //test/extensions/filters/network/wasm/... //test/extensions/wasm/... //test/extensions/common/wasm/..."
steps:
- run: rm -rf /home/circleci/project/.git # CircleCI git caching is likely broken
- checkout
- run: ci/do_circle_ci.sh bazel.tsan ${BAZEL_TEST_TARGETS}
- store_artifacts:
path: /build/envoy/generated
destination: /
coverage:
executor: ubuntu-build
environment:
BAZEL_BUILD_EXTRA_OPTIONS: "--local_ram_resources=8192 --local_cpu_resources=6"
BAZEL_TEST_TARGETS: "//test/extensions/access_loggers/wasm/... //test/extensions/filters/http/wasm/... //test/extensions/filters/network/wasm/... //test/extensions/wasm/... //test/extensions/common/wasm/..."
VALIDATE_COVERAGE: 0
steps:
- run: rm -rf /home/circleci/project/.git # CircleCI git caching is likely broken
- checkout
- run:
command:
ci/do_circle_ci.sh bazel.coverage ${BAZEL_TEST_TARGETS}
no_output_timeout: 60m
- store_artifacts:
path: /build/envoy/generated
destination: /
format:
executor: ubuntu-build
steps:
- run: rm -rf /home/circleci/project/.git # CircleCI git caching is likely broken
- checkout
- run: pip install -r tools/code_format/requirements.txt
- run: ci/do_circle_ci.sh check_format
- run: ci/do_circle_ci.sh check_repositories
- run: ci/do_circle_ci.sh check_spelling
# TODO(PiotrSikora): re-enable once fixed.
# - run: ci/do_circle_ci.sh check_spelling_pedantic
macos:
macos:
xcode: "11.0.0"
environment:
BAZEL_TEST_TARGETS: "//test/extensions/access_loggers/wasm/... //test/extensions/filters/http/wasm/... //test/extensions/filters/network/wasm/... //test/extensions/wasm/... //test/extensions/common/wasm/..."
CC: clang
CXX: clang++
steps:
- run: sudo sntp -sS time.apple.com
- run: rm -rf /home/circleci/project/.git # CircleCI git caching is likely broken
- checkout
- restore_cache:
keys:
- macos-bazel-cache-{{ checksum "bazel/repository_locations.bzl" }}
- run: ci/mac_ci_setup.sh
- run: ci/mac_ci_steps.sh ${BAZEL_TEST_TARGETS}
- save_cache:
key: macos-bazel-cache-{{ checksum "bazel/repository_locations.bzl" }}
paths:
- /private/var/tmp/_bazel_distiller/
workflows:
version: 2
all:
jobs:
- release
- all_tests
- asan
- tsan
- coverage
- format
- macos