summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-11-04 12:11:58 -0600
committerCommit Bot <commit-bot@chromium.org>2021-11-05 04:22:34 +0000
commit252457d4b21f46889eebad61d4c0a65331919cec (patch)
tree01856c4d31d710b20e85a74c8d7b5836e35c3b98 /.gitlab-ci.yml
parent08f5a1e6fc2c9467230444ac9b582dcf4d9f0068 (diff)
downloadchrome-ec-stabilize-14526.84.B-ish.tar.gz
In the interest of making long-term branch maintenance incur as little technical debt on us as possible, we should not maintain any files on the branch we are not actually using. This has the added effect of making it extremely clear when merging CLs from the main branch when changes have the possibility to affect us. The follow-on CL adds a convenience script to actually pull updates from the main branch and generate a CL for the update. BUG=b:204206272 BRANCH=ish TEST=make BOARD=arcada_ish && make BOARD=drallion_ish Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I17e4694c38219b5a0823e0a3e55a28d1348f4b18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3262038 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml154
1 files changed, 0 insertions, 154 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
deleted file mode 100644
index 1072725501..0000000000
--- a/.gitlab-ci.yml
+++ /dev/null
@@ -1,154 +0,0 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-image: jbettis/bionic-20200807-20sep21
-
-# You can update that image using this repo:
-# https://gitlab.com/zephyr-ec/gitlab-ci-runner/-/tree/main
-
-# Change pip's cache directory to be inside the project directory since we can
-# only cache local items.
-variables:
- PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
-
-# Pip's cache doesn't store the python packages
-# https://pip.pypa.io/en/stable/reference/pip_install/#caching
-#
-# If you want to also cache the installed packages, you have to install
-# them in a virtualenv and cache it as well.
-cache:
- paths:
- - .cache/pip
- - venv/
-
-
-# The directory structure is:
-#
-# /zephyr
-# /builds/zephyr-ec/ec EC_DIR
-before_script:
- - export MODULES_DIR="$HOME/modules"
- - mkdir -p "${MODULES_DIR}"
- - export ZEPHYR_BASE="$HOME/zephyr"
- - git clone -b chromeos-v2.6 https://chromium.googlesource.com/chromiumos/third_party/zephyr "${ZEPHYR_BASE}26"
- - git clone -b chromeos-main https://chromium.googlesource.com/chromiumos/third_party/zephyr/cmsis "${MODULES_DIR}/cmsis"
- - git clone -b chromeos-main https://chromium.googlesource.com/chromiumos/third_party/zephyr/hal_stm32 "${MODULES_DIR}/hal_stm32"
- - git clone -b main https://chromium.googlesource.com/chromiumos/third_party/zephyr/nanopb "${MODULES_DIR}/nanopb"
- - git clone -b main https://chromium.googlesource.com/chromiumos/third_party/cryptoc "${MODULES_DIR}/cryptoc"
- - ln -s "$(pwd)" "${MODULES_DIR}/ec"
- - python3 -V # Print out python version for debugging
- - python3 -m pip install zephyr/zmake --user
- - export BUILD_DIR=build
- - export ZEPHYR_DIR=/zephyr
- - export PATH="$PATH:$HOME/.local/bin"
- - python3 -m pip install anytree --user
- - python3 -m pip install pyelftools --user
- - export PYTHONIOENCODING=utf-8
-
-# Users of this template must set:
-# $PROJECT to the project to build in zephyr/projects. E.g. "lazor")
-# $VERSION to the Zephyr version to use (e.g. 25 for 2.5, 26 for 2.6)
-# $PROJECT_SUBDIR if it is in a subdirectory. E.g. "trogdor/"
-.build_template: &build_template
- stage: build
- script:
- - zmake --zephyr-base "${ZEPHYR_BASE}${VERSION}"
- --modules-dir "${MODULES_DIR}" -l DEBUG configure -b
- -B "${BUILD_DIR}/${PROJECT}" -t ${TOOLCHAIN:-zephyr}
- zephyr/projects/${PROJECT_SUBDIR}${PROJECT}
- - for b in "${BUILD_DIR}/${PROJECT}"/build-* ; do
- bdir=$(basename ${b}) ;
- ninja -C ${b} ram_report >"${BUILD_DIR}/${PROJECT}/output/${bdir}_ram_report.txt" ;
- cp ${b}/ram.json "${BUILD_DIR}/${PROJECT}/output/${bdir}_ram.json" ;
- ninja -C ${b} rom_report >"${BUILD_DIR}/${PROJECT}/output/${bdir}_rom_report.txt" ;
- cp ${b}/rom.json "${BUILD_DIR}/${PROJECT}/output/${bdir}_rom.json" ;
- done
- - ls "${BUILD_DIR}/${PROJECT}" "${BUILD_DIR}/${PROJECT}/output"
- artifacts:
- paths:
- - build/${PROJECT}/output/*
- expire_in: 1 week
-
-delbin:
- variables:
- PROJECT: "delbin"
- PROJECT_SUBDIR: "volteer/"
- VERSION: 26
- <<: *build_template
-
-hayato:
- variables:
- PROJECT: "hayato"
- PROJECT_SUBDIR: "asurada/"
- VERSION: 26
- <<: *build_template
-
-herobrine_npcx9:
- variables:
- PROJECT: "herobrine_npcx9"
- PROJECT_SUBDIR: "herobrine/"
- VERSION: 26
- <<: *build_template
-
-it8xxx2_evb:
- variables:
- PROJECT: "it8xxx2_evb"
- VERSION: 26
- <<: *build_template
-
-kohaku:
- variables:
- PROJECT: "kohaku"
- VERSION: 26
- <<: *build_template
-
-lazor:
- variables:
- PROJECT: "lazor"
- PROJECT_SUBDIR: "trogdor/"
- VERSION: 26
- <<: *build_template
-
-native_posix:
- variables:
- PROJECT: "posix-ec"
- TOOLCHAIN: "host"
- VERSION: 26
- <<: *build_template
-
-volteer:
- variables:
- PROJECT: "volteer"
- PROJECT_SUBDIR: "volteer/"
- VERSION: 26
- <<: *build_template
-
-coverage:
- stage: test
- script:
- - zmake --zephyr-base "${ZEPHYR_BASE}26"
- --modules-dir "${MODULES_DIR}" -l DEBUG coverage
- "${BUILD_DIR}/zcoverage"
- - make -j CRYPTOC_DIR="${MODULES_DIR}/cryptoc"
- FTDIVERSION=1 HOSTGCOV='gcov'
- CROSS_COMPILE_arm=/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-
- coverage
- - lcov -o build/merged.info -a build/coverage/lcov.info -a build/zcoverage/lcov.info
- - lcov -o build/merged_no_zephyr.info -r build/merged.info '/home/uboot/zephyr26/*' '/home/uboot/modules/*' '/usr/include/x86_64-linux-gnu/*'
- - grep "SF:" build/zcoverage/projects_herobrine_herobrine_npcx9.info | sort -u | sed -e 's|^SF:||' | xargs lcov -o build/merged_no_zephyr_herobrine_npcx9.info -e build/merged_no_zephyr.info
- - /usr/bin/genhtml -q -o build/merged_no_zephyr_herobrine_npcx9_rpt -t "Herobrine npcx9 coverage w/o zephyr" -p /builds/zephyr-ec/ec -s build/merged_no_zephyr_herobrine_npcx9.info
- artifacts:
- paths:
- - build/zcoverage/coverage_rpt/*
- - build/coverage/coverage_rpt/*
- - build/*.info
- - build/*_rpt
- expire_in: 1 week
-
-testall:
- stage: test
- script:
- - zmake --zephyr-base "${ZEPHYR_BASE}26"
- --modules-dir "${MODULES_DIR}" -l DEBUG testall
-