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