diff options
author | Jerome Forissier <jerome.forissier@linaro.org> | 2017-11-27 16:52:37 +0100 |
---|---|---|
committer | Jérôme Forissier <jerome.forissier@linaro.org> | 2017-11-28 11:37:40 +0100 |
commit | 4af6a141f61256088128df956648d7e19ead2e85 (patch) | |
tree | 8b0aab898ff15f131034992d8b394ef1deff9fb5 /.shippable.yml | |
parent | 644dfaa5bedc21edeca5c54ff7f22ab5bafe6a74 (diff) |
ci: shippable: run only platform builds
This is the second of two commits to split the CI work in two.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to '.shippable.yml')
-rw-r--r-- | .shippable.yml | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/.shippable.yml b/.shippable.yml index ddec01b5..5c61c818 100644 --- a/.shippable.yml +++ b/.shippable.yml @@ -1,9 +1,6 @@ language: c build: cache: true - cache_dir_list: - - ${SHIPPABLE_BUILD_DIR}/.ccache - - ${SHIPPABLE_BUILD_DIR}/optee_repo_qemu pre_ci_boot: image_name: jforissier/optee_os_ci image_tag: latest @@ -13,54 +10,11 @@ build: - export LC_ALL=C - export CROSS_COMPILE32="ccache arm-linux-gnueabihf-" - export CROSS_COMPILE64="ccache aarch64-linux-gnu-" - - export CCACHE_DIR=${SHIPPABLE_BUILD_DIR}/.ccache # No parallel build ('make -j$(getconf _NPROCESSORS_ONLN)') due to: # https://github.com/Shippable/support/issues/3953 - function _make() { make -s $* && ccache -s && ccache -z; } - ccache -z - # - # Checkpatch - # - - # Download the Linux checkpatch tool - - > - mkdir ${SHIPPABLE_BUILD_DIR}/checkpatch && - cd ${SHIPPABLE_BUILD_DIR}/checkpatch && - wget https://raw.githubusercontent.com/torvalds/linux/master/scripts/checkpatch.pl && - chmod a+x checkpatch.pl && - wget https://raw.githubusercontent.com/torvalds/linux/master/scripts/spelling.txt && - echo "invalid.struct.name" >const_structs.checkpatch && - export PATH=${SHIPPABLE_BUILD_DIR}/checkpatch:${PATH} && - source ${SHIPPABLE_BUILD_DIR}/scripts/checkpatch_inc.sh; - # Run checkpatch on: - # - the tip of the branch if we're not in a pull request - # - each commit in the development branch that's not in the target branch otherwise - # Then, if we have a pull request with more than 1 commit, also check the squashed commits - # Useful to check if fix-up commits do indeed solve previous checkpatch errors. - # Note: error reporting is deferred ($checkpatch_failed=1) to avoid stopping the build. - - echo Checkpatch ; - cd ${SHIPPABLE_BUILD_DIR} ; - if [ "$IS_PULL_REQUEST" == "false" ]; then - echo "Running checkpatch on branch HEAD:"; - checkpatch HEAD || export checkpatch_failed=1; - else - echo "Running checkpatch on each patch in pull request:"; - for c in $(git rev-list --reverse $(echo ${SHIPPABLE_COMMIT_RANGE} | sed 's/\.\.\./../')); do - checkpatch $c || export checkpatch_failed=1; - done; - fi; - if [ "$IS_PULL_REQUEST" == "true" ]; then - if [ "$(git rev-list --count ${SHIPPABLE_COMMIT_RANGE})" -gt 1 ]; then - echo "Running checkpatch on gobal diff (squashed commits):"; - checkdiff $(git rev-list ${SHIPPABLE_COMMIT_RANGE} | tail -1) $(git rev-list ${SHIPPABLE_COMMIT_RANGE} | head -1) || export checkpatch_failed=1; - fi; - fi; - - # - # Build tests - # - - _make - _make CFG_TEE_CORE_LOG_LEVEL=4 DEBUG=1 - _make CFG_TEE_CORE_LOG_LEVEL=3 DEBUG=1 @@ -156,37 +110,3 @@ build: - _make PLATFORM=sam - _make PLATFORM=marvell-armada7k8k - _make PLATFORM=marvell-armada3700 - - # - # Regressions tests (QEMU) - # - - # Download Google's repo script - - > - mkdir -p ${SHIPPABLE_BUILD_DIR}/bin && - export PATH=${SHIPPABLE_BUILD_DIR}/bin:${PATH} && - curl https://storage.googleapis.com/git-repo-downloads/repo >${SHIPPABLE_BUILD_DIR}/bin/repo && - chmod +x ${SHIPPABLE_BUILD_DIR}/bin/repo; - # Use repo to clone the OP-TEE CI environment for QEMU and link optee_os to the current checkout - - > - mkdir -p ${SHIPPABLE_BUILD_DIR}/optee_repo_qemu && - rm -rf ${SHIPPABLE_BUILD_DIR}/optee_repo_qemu/optee_os && - cd ${SHIPPABLE_BUILD_DIR}/optee_repo_qemu && - repo init -u https://github.com/OP-TEE/manifest.git -m travis.xml </dev/null && - repo sync -d --force-sync --no-clone-bundle --no-tags --quiet -j 2 && - cd ${SHIPPABLE_BUILD_DIR}/optee_repo_qemu/qemu && - git submodule update --init dtc && - rm -rf ${SHIPPABLE_BUILD_DIR}/optee_repo_qemu/optee_os && - ln -s ${SHIPPABLE_BUILD_DIR} ${SHIPPABLE_BUILD_DIR}/optee_repo_qemu/optee_os; - # Run xtest in QEMU - - > - cd ${SHIPPABLE_BUILD_DIR}/optee_repo_qemu/build && - unset CC && - make -k clean 2>&1 >/dev/null && - ccache -z && - make -s -j$(getconf _NPROCESSORS_ONLN) check CROSS_COMPILE="ccache arm-linux-gnueabihf-" AARCH32_CROSS_COMPILE=arm-linux-gnueabihf- DUMP_LOGS_ON_ERROR=1 CFG_RPMB_FS=y CFG_RPMB_WRITE_KEY=y && - ccache -s && - make -k clean 2>&1 >/dev/null; - - # Make the ci step fail if we had a checkpatch error - - test -z "${checkpatch_failed}" || (echo "There were checkpatch error(s), please check the 'Checkpatch' section above"; false) |