mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
ci: clean azp scripts (#340)
##### SUMMARY Clean old scripts and simplify the CI scripts.
This commit is contained in:
parent
3dffaafcdc
commit
001c3e2089
41 changed files with 185 additions and 490 deletions
|
|
@ -23,7 +23,7 @@ variables:
|
|||
- name: pipelinesCoverage
|
||||
value: coverage
|
||||
- name: entryPoint
|
||||
value: tests/utils/shippable/shippable.sh
|
||||
value: tests/utils/ci.sh
|
||||
- name: fetchDepth
|
||||
value: 0
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ stages:
|
|||
parameters:
|
||||
targets:
|
||||
- name: Sanity
|
||||
test: devel/sanity/1
|
||||
test: devel/sanity
|
||||
|
||||
- stage: Sanity_2_16
|
||||
displayName: Sanity 2.16
|
||||
|
|
@ -54,7 +54,7 @@ stages:
|
|||
parameters:
|
||||
targets:
|
||||
- name: Sanity
|
||||
test: 2.16/sanity/1
|
||||
test: 2.16/sanity
|
||||
|
||||
- stage: Sanity_2_15
|
||||
displayName: Sanity 2.15
|
||||
|
|
@ -64,7 +64,7 @@ stages:
|
|||
parameters:
|
||||
targets:
|
||||
- name: Sanity
|
||||
test: 2.15/sanity/1
|
||||
test: 2.15/sanity
|
||||
|
||||
- stage: Sanity_2_14
|
||||
displayName: Sanity 2.14
|
||||
|
|
@ -74,7 +74,7 @@ stages:
|
|||
parameters:
|
||||
targets:
|
||||
- name: Sanity
|
||||
test: 2.14/sanity/1
|
||||
test: 2.14/sanity
|
||||
|
||||
- stage: Sanity_2_13
|
||||
displayName: Sanity 2.13
|
||||
|
|
@ -84,7 +84,7 @@ stages:
|
|||
parameters:
|
||||
targets:
|
||||
- name: Sanity
|
||||
test: 2.13/sanity/1
|
||||
test: 2.13/sanity
|
||||
|
||||
### Units
|
||||
- stage: Units_devel
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
set -o pipefail -eu
|
||||
|
||||
entry_point="$1"
|
||||
test="$2"
|
||||
entry_point_args="$2"
|
||||
read -r -a coverage_branches <<< "$3" # space separated list of branches to run code coverage on for scheduled builds
|
||||
|
||||
export COMMIT_MESSAGE
|
||||
|
|
@ -16,19 +16,19 @@ if [ "${SYSTEM_PULLREQUEST_TARGETBRANCH:-}" ]; then
|
|||
IS_PULL_REQUEST=true
|
||||
COMMIT_MESSAGE=$(git log --format=%B -n 1 HEAD^2)
|
||||
else
|
||||
IS_PULL_REQUEST=
|
||||
IS_PULL_REQUEST=false
|
||||
COMMIT_MESSAGE=$(git log --format=%B -n 1 HEAD)
|
||||
fi
|
||||
|
||||
COMPLETE=
|
||||
COVERAGE=
|
||||
COMPLETE=false
|
||||
COVERAGE=false
|
||||
|
||||
if [ "${BUILD_REASON}" = "Schedule" ]; then
|
||||
COMPLETE=yes
|
||||
COMPLETE=true
|
||||
|
||||
if printf '%s\n' "${coverage_branches[@]}" | grep -q "^${BUILD_SOURCEBRANCHNAME}$"; then
|
||||
COVERAGE=yes
|
||||
COVERAGE=true
|
||||
fi
|
||||
fi
|
||||
|
||||
"${entry_point}" "${test}" 2>&1 | "$(dirname "$0")/time-command.py"
|
||||
"${entry_point}" "${entry_point_args}" 2>&1 | "$(dirname "$0")/time-command.py"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue