Anas Nashif | acedb70 | 2017-04-25 23:12:08 -0400 | [diff] [blame] | 1 | language: c |
| 2 | |
| 3 | compiler: gcc |
| 4 | |
| 5 | env: |
| 6 | global: |
Anas Nashif | 1c3cbc5 | 2018-09-20 10:28:35 -0500 | [diff] [blame] | 7 | - SDK=0.9.5 |
Anas Nashif | 1c3cbc5 | 2018-09-20 10:28:35 -0500 | [diff] [blame] | 8 | - ZEPHYR_SDK_INSTALL_DIR=/opt/sdk/zephyr-sdk-0.9.5 |
Anas Nashif | 7ee8bb9 | 2018-02-11 14:36:21 -0600 | [diff] [blame] | 9 | - ZEPHYR_TOOLCHAIN_VARIANT=zephyr |
Anas Nashif | 7e625ab | 2018-09-18 13:17:01 -0500 | [diff] [blame] | 10 | - MATRIX_BUILDS="5" |
| 11 | - MATRIX_BUILDS_EXTRA="5" |
Anas Nashif | acedb70 | 2017-04-25 23:12:08 -0400 | [diff] [blame] | 12 | matrix: |
Anas Nashif | 52cc234 | 2017-05-18 07:49:47 -0400 | [diff] [blame] | 13 | - MATRIX_BUILD="1" |
| 14 | - MATRIX_BUILD="2" |
Anas Nashif | a24e6ba | 2017-07-19 12:45:02 +0300 | [diff] [blame] | 15 | - MATRIX_BUILD="3" |
Anas Nashif | 7c1602d | 2017-10-28 14:24:18 -0400 | [diff] [blame] | 16 | - MATRIX_BUILD="4" |
Kumar Gala | 0df7e1c | 2018-04-04 09:58:28 -0500 | [diff] [blame] | 17 | - MATRIX_BUILD="5" |
Anas Nashif | acedb70 | 2017-04-25 23:12:08 -0400 | [diff] [blame] | 18 | |
| 19 | build: |
Anas Nashif | 5f5bd8b | 2018-09-18 13:53:08 -0500 | [diff] [blame] | 20 | cache: false |
Anas Nashif | acedb70 | 2017-04-25 23:12:08 -0400 | [diff] [blame] | 21 | cache_dir_list: |
| 22 | - ${SHIPPABLE_BUILD_DIR}/ccache |
| 23 | pre_ci_boot: |
Anas Nashif | 5fc31b8 | 2017-05-19 16:17:16 -0400 | [diff] [blame] | 24 | image_name: zephyrprojectrtos/ci |
Anas Nashif | 7a85c19 | 2018-11-22 08:04:53 -0500 | [diff] [blame] | 25 | image_tag: v0.5-rc3 |
Anas Nashif | acedb70 | 2017-04-25 23:12:08 -0400 | [diff] [blame] | 26 | pull: true |
| 27 | options: "-e HOME=/home/buildslave --privileged=true --tty --net=bridge --user buildslave" |
| 28 | |
| 29 | ci: |
Anas Nashif | acedb70 | 2017-04-25 23:12:08 -0400 | [diff] [blame] | 30 | - export CCACHE_DIR=${SHIPPABLE_BUILD_DIR}/ccache/.ccache |
Anas Nashif | b127aff | 2017-10-06 08:41:09 -0400 | [diff] [blame] | 31 | - > |
| 32 | if [ "$IS_PULL_REQUEST" = "true" ]; then |
Anas Nashif | 45cbc81 | 2018-12-03 09:47:52 -0500 | [diff] [blame] | 33 | ./scripts/ci/run_ci.sh -c -b ${PULL_REQUEST_BASE_BRANCH} -r origin -m ${MATRIX_BUILD} -M ${MATRIX_BUILDS} -p ${PULL_REQUEST}; |
Anas Nashif | 0a63947 | 2018-11-10 09:53:13 -0500 | [diff] [blame] | 34 | else |
Anas Nashif | fa963a9 | 2018-12-03 19:09:26 -0500 | [diff] [blame] | 35 | ./scripts/ci/run_ci.sh -c -b ${BRANCH} -r origin -m ${MATRIX_BUILD} -M ${MATRIX_BUILDS}; |
Anas Nashif | 0a63947 | 2018-11-10 09:53:13 -0500 | [diff] [blame] | 36 | fi; |
Anas Nashif | acedb70 | 2017-04-25 23:12:08 -0400 | [diff] [blame] | 37 | - ccache -s |
Anas Nashif | aa05b95 | 2017-08-02 12:34:24 -0400 | [diff] [blame] | 38 | on_failure: |
Sebastian Bøe | 84b0448 | 2018-09-17 17:16:11 +0200 | [diff] [blame] | 39 | - > |
Anas Nashif | a0a1bff | 2018-11-15 10:46:46 -0500 | [diff] [blame] | 40 | if [ "$IS_PULL_REQUEST" = "true" ]; then |
Anas Nashif | 45cbc81 | 2018-12-03 09:47:52 -0500 | [diff] [blame] | 41 | ./scripts/ci/run_ci.sh -f -b ${PULL_REQUEST_BASE_BRANCH} -r origin -m ${MATRIX_BUILD} -M ${MATRIX_BUILDS} -p ${PULL_REQUEST}; |
Anas Nashif | a0a1bff | 2018-11-15 10:46:46 -0500 | [diff] [blame] | 42 | else |
Anas Nashif | fa963a9 | 2018-12-03 19:09:26 -0500 | [diff] [blame] | 43 | ./scripts/ci/run_ci.sh -f -b ${BRANCH} -r origin -m ${MATRIX_BUILD} -M ${MATRIX_BUILDS}; |
Anas Nashif | a0a1bff | 2018-11-15 10:46:46 -0500 | [diff] [blame] | 44 | fi; |
Anas Nashif | aa05b95 | 2017-08-02 12:34:24 -0400 | [diff] [blame] | 45 | on_success: |
Anas Nashif | 2924000 | 2018-01-05 08:28:23 -0500 | [diff] [blame] | 46 | - > |
Anas Nashif | a0a1bff | 2018-11-15 10:46:46 -0500 | [diff] [blame] | 47 | if [ "$IS_PULL_REQUEST" = "true" ]; then |
Anas Nashif | 45cbc81 | 2018-12-03 09:47:52 -0500 | [diff] [blame] | 48 | ./scripts/ci/run_ci.sh -s -b ${PULL_REQUEST_BASE_BRANCH} -r origin -m ${MATRIX_BUILD} -M ${MATRIX_BUILDS} -p ${PULL_REQUEST}; |
Anas Nashif | a0a1bff | 2018-11-15 10:46:46 -0500 | [diff] [blame] | 49 | else |
Anas Nashif | fa963a9 | 2018-12-03 19:09:26 -0500 | [diff] [blame] | 50 | ./scripts/ci/run_ci.sh -s -b ${BRANCH} -r origin -m ${MATRIX_BUILD} -M ${MATRIX_BUILDS}; |
Anas Nashif | a0a1bff | 2018-11-15 10:46:46 -0500 | [diff] [blame] | 51 | fi; |
Anas Nashif | acedb70 | 2017-04-25 23:12:08 -0400 | [diff] [blame] | 52 | |
| 53 | integrations: |
| 54 | notifications: |
Anas Nashif | 3a212f8 | 2017-04-29 22:36:11 -0400 | [diff] [blame] | 55 | - 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 Nashif | acedb70 | 2017-04-25 23:12:08 -0400 | [diff] [blame] | 64 | - 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 |