Merge branch 'ci/add_check_stage' into 'master'

ci: Add 'check' stage, move all check-related jobs to this stage

See merge request idf/esp-idf!2986
This commit is contained in:
Angus Gratton 2018-08-31 10:08:59 +08:00
commit 6de75e03ac

View file

@ -4,6 +4,7 @@ stages:
- host_test - host_test
- unit_test - unit_test
- integration_test - integration_test
- check
- deploy - deploy
variables: variables:
@ -68,6 +69,12 @@ before_script:
# fetch the submodules (& if necessary re-fetch repo) from gitlab # fetch the submodules (& if necessary re-fetch repo) from gitlab
- time ./tools/ci/get-full-sources.sh - time ./tools/ci/get-full-sources.sh
# used for check scripts which we want to run unconditionally
.do_nothing_before_no_filter:
before_script: &do_nothing_before_no_filter
- *git_clean_stale_submodules
# used for everything else where we want to do no prep, except for bot filter
.do_nothing_before: .do_nothing_before:
before_script: &do_nothing_before before_script: &do_nothing_before
- *git_clean_stale_submodules - *git_clean_stale_submodules
@ -507,30 +514,22 @@ check_doc_links:
- make linkcheck - make linkcheck
check_line_endings: check_line_endings:
stage: deploy stage: check
image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG
tags: tags:
- build - build
except:
- master
- /^release\/v/
- /^v\d+\.\d+(\.\d+)?($|-)/
dependencies: [] dependencies: []
before_script: *do_nothing_before before_script: *do_nothing_before_no_filter
script: script:
- tools/ci/check-line-endings.sh ${IDF_PATH} - tools/ci/check-line-endings.sh ${IDF_PATH}
check_commit_msg: check_commit_msg:
stage: deploy stage: check
image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG
tags: tags:
- build - build
except:
- master
- /^release\/v/
- /^v\d+\.\d+(\.\d+)?($|-)/
dependencies: [] dependencies: []
before_script: *do_nothing_before before_script: *do_nothing_before_no_filter
script: script:
- git status - git status
- git log -n10 --oneline - git log -n10 --oneline
@ -538,32 +537,24 @@ check_commit_msg:
- 'git log --pretty=%s master.. -- | grep "^WIP: " && exit 1 || exit 0' - 'git log --pretty=%s master.. -- | grep "^WIP: " && exit 1 || exit 0'
check_permissions: check_permissions:
stage: deploy stage: check
image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG
tags: tags:
- build - build
except:
- master
- /^release\/v/
- /^v\d+\.\d+(\.\d+)?($|-)/
dependencies: [] dependencies: []
before_script: *do_nothing_before before_script: *do_nothing_before_no_filter
script: script:
- tools/ci/check-executable.sh - tools/ci/check-executable.sh
check_submodule_sync: check_submodule_sync:
stage: deploy stage: check
image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG
tags: tags:
- build - build
except:
- master
- /^release\/v/
- /^v\d+\.\d+(\.\d+)?($|-)/
dependencies: [] dependencies: []
variables: variables:
GIT_STRATEGY: clone GIT_STRATEGY: clone
before_script: *do_nothing_before before_script: *do_nothing_before_no_filter
script: script:
# check if all submodules are correctly synced to public repostory # check if all submodules are correctly synced to public repostory
- git submodule update --init --recursive - git submodule update --init --recursive