forked from envoyproxy/envoy-filter-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build: create initial circleci project (envoyproxy#41)
This creates the initial build and test workflows for circleci Signed-off-by: <Nicholas Johns [email protected]>
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
references: | ||
envoy-build-image: &envoy-build-image | ||
envoyproxy/envoy-build:latest | ||
|
||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: *envoy-build-image | ||
resource_class: xlarge | ||
steps: | ||
- checkout | ||
- run: git submodule update --init | ||
- run: ./ci/do_ci.sh build | ||
test: | ||
docker: | ||
- image: *envoy-build-image | ||
resource_class: xlarge | ||
steps: | ||
- checkout | ||
- run: git submodule update --init | ||
- run: ./ci/do_ci.sh test | ||
|
||
workflows: | ||
version: 2 | ||
all: | ||
jobs: | ||
- build | ||
- test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash -e | ||
|
||
if [[ -f "${HOME:-/root}/.gitconfig" ]]; then | ||
mv "${HOME:-/root}/.gitconfig" "${HOME:-/root}/.gitconfig_save" | ||
fi | ||
|
||
function do_build () { | ||
bazel build --verbose_failures=true //:envoy | ||
} | ||
|
||
function do_test() { | ||
bazel test --test_output=all //:echo2_integration_test | ||
} | ||
|
||
case "$1" in | ||
build) | ||
do_build | ||
;; | ||
test) | ||
do_test | ||
;; | ||
*) | ||
echo "must be one of [build,test]" | ||
exit 1 | ||
;; | ||
esac |