forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
42 lines (41 loc) · 1.54 KB
/
circle.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
version: 1
machine:
xcode:
version: 8.3.3
dependencies:
cache_directories:
# Cache homebrew and everything it installs.
- "/usr/local"
pre:
- brew ls --versions coreutils >/dev/null || brew install coreutils
- brew ls --versions wget >/dev/null || brew install wget
- brew ls --versions cmake >/dev/null || brew install cmake
- brew ls --versions libtool >/dev/null || brew install libtool
- brew ls --versions go >/dev/null || brew install go
- brew ls --versions bazel >/dev/null || brew install bazel
- |
if [ "${PULL_REQUEST}" = "true" -a -n "${PULL_REQUEST_REPO}" -a -n "${PULL_REQUEST_SHA}" ]; then
git branch -D ci-branch || true
git remote remove pr_repo || true
git remote add pr_repo "https://github.com/${PULL_REQUEST_REPO}.git"
git fetch pr_repo
git checkout -b ci-branch
git merge --no-edit "${PULL_REQUEST_SHA}"
fi
compile:
override:
# set up bazelrc
- |
(echo "build --curses=no --show_task_finish" &&
echo "test --curses=no --show_task_finish") >~/.bazelrc
# bazel uses jgit internally and the default circle-ci .gitconfig says to
# convert https://github.com to ssh://[email protected], which jgit does not support.
- mv ~/.gitconfig ~/.gitconfig_save
- bazel build --verbose_failures //source/...
- bazel build --verbose_failures //test/...
test:
override:
- bazel test --test_output=all //test/...
notify:
webhooks:
- url: "https://webhooks.turbinelabs.net/v1/build/webhook"