blob: 12e3024096ec2db3b83469c4fc1f6bab788850e1 [file] [log] [blame]
Anas Nashifacedb702017-04-25 23:12:08 -04001language: c
2
3compiler: gcc
4
5env:
6 global:
Anas Nashif1c3cbc52018-09-20 10:28:35 -05007 - SDK=0.9.5
Anas Nashif1c3cbc52018-09-20 10:28:35 -05008 - ZEPHYR_SDK_INSTALL_DIR=/opt/sdk/zephyr-sdk-0.9.5
Anas Nashif7ee8bb92018-02-11 14:36:21 -06009 - ZEPHYR_TOOLCHAIN_VARIANT=zephyr
Anas Nashif7e625ab2018-09-18 13:17:01 -050010 - MATRIX_BUILDS="5"
11 - MATRIX_BUILDS_EXTRA="5"
Anas Nashifacedb702017-04-25 23:12:08 -040012 matrix:
Anas Nashif52cc2342017-05-18 07:49:47 -040013 - MATRIX_BUILD="1"
14 - MATRIX_BUILD="2"
Anas Nashifa24e6ba2017-07-19 12:45:02 +030015 - MATRIX_BUILD="3"
Anas Nashif7c1602d2017-10-28 14:24:18 -040016 - MATRIX_BUILD="4"
Kumar Gala0df7e1c2018-04-04 09:58:28 -050017 - MATRIX_BUILD="5"
Anas Nashifacedb702017-04-25 23:12:08 -040018
19build:
Anas Nashif5f5bd8b2018-09-18 13:53:08 -050020 cache: false
Anas Nashifacedb702017-04-25 23:12:08 -040021 cache_dir_list:
22 - ${SHIPPABLE_BUILD_DIR}/ccache
23 pre_ci_boot:
Anas Nashif5fc31b82017-05-19 16:17:16 -040024 image_name: zephyrprojectrtos/ci
Anas Nashif7a85c192018-11-22 08:04:53 -050025 image_tag: v0.5-rc3
Anas Nashifacedb702017-04-25 23:12:08 -040026 pull: true
27 options: "-e HOME=/home/buildslave --privileged=true --tty --net=bridge --user buildslave"
28
29 ci:
Anas Nashifacedb702017-04-25 23:12:08 -040030 - export CCACHE_DIR=${SHIPPABLE_BUILD_DIR}/ccache/.ccache
Anas Nashifb127aff2017-10-06 08:41:09 -040031 - >
32 if [ "$IS_PULL_REQUEST" = "true" ]; then
Anas Nashif45cbc812018-12-03 09:47:52 -050033 ./scripts/ci/run_ci.sh -c -b ${PULL_REQUEST_BASE_BRANCH} -r origin -m ${MATRIX_BUILD} -M ${MATRIX_BUILDS} -p ${PULL_REQUEST};
Anas Nashif0a639472018-11-10 09:53:13 -050034 else
Anas Nashiffa963a92018-12-03 19:09:26 -050035 ./scripts/ci/run_ci.sh -c -b ${BRANCH} -r origin -m ${MATRIX_BUILD} -M ${MATRIX_BUILDS};
Anas Nashif0a639472018-11-10 09:53:13 -050036 fi;
Anas Nashifacedb702017-04-25 23:12:08 -040037 - ccache -s
Anas Nashifaa05b952017-08-02 12:34:24 -040038 on_failure:
Sebastian Bøe84b04482018-09-17 17:16:11 +020039 - >
Anas Nashifa0a1bff2018-11-15 10:46:46 -050040 if [ "$IS_PULL_REQUEST" = "true" ]; then
Anas Nashif45cbc812018-12-03 09:47:52 -050041 ./scripts/ci/run_ci.sh -f -b ${PULL_REQUEST_BASE_BRANCH} -r origin -m ${MATRIX_BUILD} -M ${MATRIX_BUILDS} -p ${PULL_REQUEST};
Anas Nashifa0a1bff2018-11-15 10:46:46 -050042 else
Anas Nashiffa963a92018-12-03 19:09:26 -050043 ./scripts/ci/run_ci.sh -f -b ${BRANCH} -r origin -m ${MATRIX_BUILD} -M ${MATRIX_BUILDS};
Anas Nashifa0a1bff2018-11-15 10:46:46 -050044 fi;
Anas Nashifaa05b952017-08-02 12:34:24 -040045 on_success:
Anas Nashif29240002018-01-05 08:28:23 -050046 - >
Anas Nashifa0a1bff2018-11-15 10:46:46 -050047 if [ "$IS_PULL_REQUEST" = "true" ]; then
Anas Nashif45cbc812018-12-03 09:47:52 -050048 ./scripts/ci/run_ci.sh -s -b ${PULL_REQUEST_BASE_BRANCH} -r origin -m ${MATRIX_BUILD} -M ${MATRIX_BUILDS} -p ${PULL_REQUEST};
Anas Nashifa0a1bff2018-11-15 10:46:46 -050049 else
Anas Nashiffa963a92018-12-03 19:09:26 -050050 ./scripts/ci/run_ci.sh -s -b ${BRANCH} -r origin -m ${MATRIX_BUILD} -M ${MATRIX_BUILDS};
Anas Nashifa0a1bff2018-11-15 10:46:46 -050051 fi;
Anas Nashifacedb702017-04-25 23:12:08 -040052
53integrations:
54 notifications:
Anas Nashif3a212f82017-04-29 22:36:11 -040055 - integrationName: slack_integration
56 type: slack
57 recipients:
58 - "#ci"
59 branches:
60 only:
61 - master
62 on_success: never
63 on_failure: always
Anas Nashifacedb702017-04-25 23:12:08 -040064 - integrationName: email
65 type: email
66 recipients:
67 - builds@zephyrproject.org
68 branches:
69 only:
70 - master
71 - net
72 - bluetooth
73 - arm
74 on_success: never
75 on_failure: never