2017-04-26 11:12:08 +08:00
|
|
|
language: c
|
|
|
|
|
|
|
|
compiler: gcc
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
2019-06-14 10:03:32 +08:00
|
|
|
- SDK=0.10.1
|
|
|
|
- ZEPHYR_SDK_INSTALL_DIR=/opt/sdk/zephyr-sdk-0.10.1
|
2018-02-12 04:36:21 +08:00
|
|
|
- ZEPHYR_TOOLCHAIN_VARIANT=zephyr
|
2019-01-16 02:51:10 +08:00
|
|
|
- MATRIX_BUILDS="5"
|
2017-04-26 11:12:08 +08:00
|
|
|
matrix:
|
2017-05-18 19:49:47 +08:00
|
|
|
- MATRIX_BUILD="1"
|
|
|
|
- MATRIX_BUILD="2"
|
2017-07-19 17:45:02 +08:00
|
|
|
- MATRIX_BUILD="3"
|
2017-10-29 02:24:18 +08:00
|
|
|
- MATRIX_BUILD="4"
|
2018-04-04 22:58:28 +08:00
|
|
|
- MATRIX_BUILD="5"
|
2017-04-26 11:12:08 +08:00
|
|
|
|
|
|
|
build:
|
2018-09-19 02:53:08 +08:00
|
|
|
cache: false
|
2017-04-26 11:12:08 +08:00
|
|
|
cache_dir_list:
|
|
|
|
- ${SHIPPABLE_BUILD_DIR}/ccache
|
|
|
|
pre_ci_boot:
|
2017-05-20 04:17:16 +08:00
|
|
|
image_name: zephyrprojectrtos/ci
|
2019-06-14 10:03:32 +08:00
|
|
|
image_tag: v0.7
|
2017-04-26 11:12:08 +08:00
|
|
|
pull: true
|
|
|
|
options: "-e HOME=/home/buildslave --privileged=true --tty --net=bridge --user buildslave"
|
|
|
|
|
|
|
|
ci:
|
|
|
|
- export CCACHE_DIR=${SHIPPABLE_BUILD_DIR}/ccache/.ccache
|
2017-10-06 20:41:09 +08:00
|
|
|
- >
|
|
|
|
if [ "$IS_PULL_REQUEST" = "true" ]; then
|
2018-12-03 22:47:52 +08:00
|
|
|
./scripts/ci/run_ci.sh -c -b ${PULL_REQUEST_BASE_BRANCH} -r origin -m ${MATRIX_BUILD} -M ${MATRIX_BUILDS} -p ${PULL_REQUEST};
|
2018-11-10 22:53:13 +08:00
|
|
|
else
|
2018-12-04 08:09:26 +08:00
|
|
|
./scripts/ci/run_ci.sh -c -b ${BRANCH} -r origin -m ${MATRIX_BUILD} -M ${MATRIX_BUILDS};
|
2018-11-10 22:53:13 +08:00
|
|
|
fi;
|
2017-04-26 11:12:08 +08:00
|
|
|
- ccache -s
|
2017-08-03 00:34:24 +08:00
|
|
|
on_failure:
|
2018-09-17 23:16:11 +08:00
|
|
|
- >
|
2018-11-15 23:46:46 +08:00
|
|
|
if [ "$IS_PULL_REQUEST" = "true" ]; then
|
2018-12-03 22:47:52 +08:00
|
|
|
./scripts/ci/run_ci.sh -f -b ${PULL_REQUEST_BASE_BRANCH} -r origin -m ${MATRIX_BUILD} -M ${MATRIX_BUILDS} -p ${PULL_REQUEST};
|
2018-11-15 23:46:46 +08:00
|
|
|
else
|
2018-12-04 08:09:26 +08:00
|
|
|
./scripts/ci/run_ci.sh -f -b ${BRANCH} -r origin -m ${MATRIX_BUILD} -M ${MATRIX_BUILDS};
|
2018-11-15 23:46:46 +08:00
|
|
|
fi;
|
2017-08-03 00:34:24 +08:00
|
|
|
on_success:
|
2018-01-05 21:28:23 +08:00
|
|
|
- >
|
2018-11-15 23:46:46 +08:00
|
|
|
if [ "$IS_PULL_REQUEST" = "true" ]; then
|
2018-12-03 22:47:52 +08:00
|
|
|
./scripts/ci/run_ci.sh -s -b ${PULL_REQUEST_BASE_BRANCH} -r origin -m ${MATRIX_BUILD} -M ${MATRIX_BUILDS} -p ${PULL_REQUEST};
|
2018-11-15 23:46:46 +08:00
|
|
|
else
|
2018-12-04 08:09:26 +08:00
|
|
|
./scripts/ci/run_ci.sh -s -b ${BRANCH} -r origin -m ${MATRIX_BUILD} -M ${MATRIX_BUILDS};
|
2018-11-15 23:46:46 +08:00
|
|
|
fi;
|
2019-04-17 21:17:59 +08:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- v*-branch
|
|
|
|
- topic-*
|
2017-04-26 11:12:08 +08:00
|
|
|
integrations:
|
|
|
|
notifications:
|
2017-04-30 10:36:11 +08:00
|
|
|
- integrationName: slack_integration
|
|
|
|
type: slack
|
|
|
|
recipients:
|
|
|
|
- "#ci"
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
on_success: never
|
2019-01-31 19:43:50 +08:00
|
|
|
on_failure: never
|
2017-04-26 11:12:08 +08:00
|
|
|
- integrationName: email
|
|
|
|
type: email
|
|
|
|
recipients:
|
|
|
|
- builds@zephyrproject.org
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
on_success: never
|
2019-05-07 00:06:46 +08:00
|
|
|
on_failure: always
|
|
|
|
on_pull_request: never
|