Skip to content

Commit

Permalink
Merge pull request #1 from project-chip/master
Browse files Browse the repository at this point in the history
Syncing fork to main repo
  • Loading branch information
vidhis88 authored Jun 22, 2020
2 parents 7fafb68 + aa82588 commit 924f3c3
Show file tree
Hide file tree
Showing 325 changed files with 15,155 additions and 5,476 deletions.
104 changes: 91 additions & 13 deletions .circleci/config.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 33 additions & 16 deletions .circleci/config/commands/@commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ save-persistent-ci-cache:
type: string
steps:
- save_cache:
key:
build-environment-{{ arch
key: build-environment-{{ arch
}}-<<parameters.builder>>-persistent-cache
paths:
- ./ci-cache-persistent
Expand All @@ -26,8 +25,7 @@ load-persistent-ci-cache:
type: string
steps:
- restore_cache:
key:
build-environment-{{ arch
key: build-environment-{{ arch
}}-<<parameters.builder>>-persistent-cache
save-build-environment:
description: Save the build environment
Expand All @@ -36,8 +34,7 @@ save-build-environment:
type: string
steps:
- save_cache:
key:
build-environment-{{ arch }}-{{
key: build-environment-{{ arch }}-{{
.Branch}}-{{.Environment.CIRCLE_SHA1 }}-<<
parameters.builder>>-built
paths:
Expand All @@ -49,8 +46,7 @@ save-bootstrapped-tree:
type: string
steps:
- save_cache:
key:
bootstrapped-tree-{{ arch }}-{{
key: bootstrapped-tree-{{ arch }}-{{
.Branch}}-{{.Environment.CIRCLE_SHA1 }}-<<
parameters.builder>>-built
paths:
Expand All @@ -62,8 +58,7 @@ load-bootstrapped-tree:
type: string
steps:
- restore_cache:
key:
bootstrapped-tree-{{ arch }}-{{
key: bootstrapped-tree-{{ arch }}-{{
.Branch}}-{{.Environment.CIRCLE_SHA1 }}-<<
parameters.builder>>-built
save-built-tree:
Expand All @@ -73,8 +68,7 @@ save-built-tree:
type: string
steps:
- save_cache:
key:
built-tree-{{ arch }}-{{
key: built-tree-{{ arch }}-{{
.Branch}}-{{.Environment.CIRCLE_SHA1}}-<<
parameters.builder>>-built
paths:
Expand All @@ -86,8 +80,7 @@ load-build-environment:
type: string
steps:
- restore_cache:
key:
build-environment-{{ arch }}-{{
key: build-environment-{{ arch }}-{{
.Branch}}-{{.Environment.CIRCLE_SHA1 }}-<<
parameters.builder>>-built
load-built-tree:
Expand All @@ -97,8 +90,7 @@ load-built-tree:
type: string
steps:
- restore_cache:
key:
built-tree-{{ arch }}-{{
key: built-tree-{{ arch }}-{{
.Branch}}-{{.Environment.CIRCLE_SHA1}}-<<
parameters.builder>>-built
setup-environment:
Expand All @@ -112,3 +104,28 @@ setup-environment:
command:
scripts/tools/run_if.sh "ubuntu-16-lts" "$BUILD_TYPE" sudo
scripts/setup/linux/install_packages.sh
bloat-check:
description: Bloat check against master branch
parameters:
job_name:
type: string
baseline_download_dir:
type: string
build_output_dir:
type: string
steps:
- run:
name: Generate bloat report
command: |
mkdir -p "<<parameters.baseline_download_dir>>"
scripts/helpers/bloat_check.py \
--token "$CIRCLECI_API_TOKEN" \
--job "<<parameters.job_name>>" \
--artifact-download-dir "<<parameters.baseline_download_dir>>" \
--build-output-dir "<<parameters.build_output_dir>>" \
--report-file bloat_report.txt \
--github-repository "$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME" \
--github-comment-pr-number "$CIRCLE_PR_NUMBER" \
--github-api-token "$GITHUB_BLOAT_API_TOKEN"
- store_artifacts:
path: bloat_report.txt
14 changes: 7 additions & 7 deletions .circleci/config/executors/@executors.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
main-build:
docker:
- image: connectedhomeip/chip-build:0.2.11
- image: connectedhomeip/chip-build-openssl:0.2.14
nrf-build:
docker:
- image: connectedhomeip/chip-build-nrf-platform:0.2.11
- image: connectedhomeip/chip-build-nrf-platform:0.2.14
esp32-build:
docker:
- image: connectedhomeip/chip-build-esp32:0.2.11
- image: connectedhomeip/chip-build-esp32:0.2.14
esp32-qemu-build:
docker:
- image: connectedhomeip/chip-build-esp32-qemu:0.2.11
- image: connectedhomeip/chip-build-esp32-qemu:0.2.14
linux-embedded:
environment:
BOOTSTRAP_ARGUMENTS: " --with-device-layer=linux"
docker:
- image: connectedhomeip/chip-build:0.2.11
- image: connectedhomeip/chip-build:0.2.14
mbedtls-build:
environment:
BOOTSTRAP_ARGUMENTS: " --with-crypto=mbedtls"
docker:
- image: connectedhomeip/chip-build:0.2.11
- image: connectedhomeip/chip-build:0.2.14
clang-build:
environment:
BOOTSTRAP_ARGUMENTS: " CC=clang-9 CXX=clang++-9"
docker:
- image: connectedhomeip/chip-build:0.2.11
- image: connectedhomeip/chip-build:0.2.14
22 changes: 17 additions & 5 deletions .circleci/config/jobs/examples_esp32.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
environment:
BUILD_TYPE: esp32-build
BUILD_TYPE: esp32-build
executor: esp32-build
steps:
- checkout
- run:
name: Build example Echo App
command: scripts/examples/esp_echo_app.sh
- checkout
- run:
name: Build example Echo App
command: scripts/examples/esp_echo_app.sh
- run:
name: Preserve artifacts
command: |
mkdir -p example_binaries/esp32-build
cp examples/wifi-echo/server/esp32/build/chip-wifi-echo.elf \
example_binaries/esp32-build/chip-wifi-echo.elf
- bloat-check:
job_name: Build Examples [ESP32]
baseline_download_dir: master_binaries/esp32-build
build_output_dir: example_binaries/esp32-build
- store_artifacts:
path: example_binaries/esp32-build
22 changes: 17 additions & 5 deletions .circleci/config/jobs/examples_nrf.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
environment:
BUILD_TYPE: nrf-build
BUILD_TYPE: nrf-build
executor: nrf-build
steps:
- checkout
- run:
name: Build example nRF5 Lock App
command: scripts/examples/nrf_lock_app.sh
- checkout
- run:
name: Build example nRF5 Lock App
command: scripts/examples/nrf_lock_app.sh
- run:
name: Preserve artifacts
command: |
mkdir -p example_binaries/nrf-build
cp examples/lock-app/nrf5/build/chip-nrf52840-lock-example.out \
example_binaries/nrf-build/chip-nrf52840-lock-example.out
- bloat-check:
job_name: Build Examples [nRF]
baseline_download_dir: master_binaries/nrf-build
build_output_dir: example_binaries/nrf-build
- store_artifacts:
path: example_binaries/nrf-build
Loading

0 comments on commit 924f3c3

Please sign in to comment.