Always rebase on master before running a job (#4616)
This commit is contained in:
parent
fc072300ea
commit
38a3075025
4 changed files with 11 additions and 0 deletions
|
@ -29,6 +29,7 @@ variables:
|
||||||
LOG_LEVEL: "-vv"
|
LOG_LEVEL: "-vv"
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- ./tests/scripts/rebase.sh
|
||||||
- /usr/bin/python -m pip install -r tests/requirements.txt
|
- /usr/bin/python -m pip install -r tests/requirements.txt
|
||||||
- mkdir -p /.ssh
|
- mkdir -p /.ssh
|
||||||
|
|
||||||
|
@ -42,6 +43,7 @@ before_script:
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
before_script:
|
before_script:
|
||||||
|
- ./tests/scripts/rebase.sh
|
||||||
- ./tests/scripts/testcases_prepare.sh
|
- ./tests/scripts/testcases_prepare.sh
|
||||||
script:
|
script:
|
||||||
- ./tests/scripts/testcases_run.sh
|
- ./tests/scripts/testcases_run.sh
|
||||||
|
|
|
@ -5,6 +5,7 @@ shellcheck:
|
||||||
variables:
|
variables:
|
||||||
SHELLCHECK_VERSION: v0.6.0
|
SHELLCHECK_VERSION: v0.6.0
|
||||||
before_script:
|
before_script:
|
||||||
|
- ./tests/scripts/rebase.sh
|
||||||
- curl --silent "https://storage.googleapis.com/shellcheck/shellcheck-"${SHELLCHECK_VERSION}".linux.x86_64.tar.xz" | tar -xJv
|
- curl --silent "https://storage.googleapis.com/shellcheck/shellcheck-"${SHELLCHECK_VERSION}".linux.x86_64.tar.xz" | tar -xJv
|
||||||
- cp shellcheck-"${SHELLCHECK_VERSION}"/shellcheck /usr/bin/
|
- cp shellcheck-"${SHELLCHECK_VERSION}"/shellcheck /usr/bin/
|
||||||
- shellcheck --version
|
- shellcheck --version
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
.terraform_install:
|
.terraform_install:
|
||||||
extends: .job
|
extends: .job
|
||||||
before_script:
|
before_script:
|
||||||
|
- ./tests/scripts/rebase.sh
|
||||||
# Set Ansible config
|
# Set Ansible config
|
||||||
- cp ansible.cfg ~/.ansible.cfg
|
- cp ansible.cfg ~/.ansible.cfg
|
||||||
# Install Terraform
|
# Install Terraform
|
||||||
|
|
7
tests/scripts/rebase.sh
Executable file
7
tests/scripts/rebase.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
|
# Rebase on master to get latest changes
|
||||||
|
git config user.email "ci@kubespray.io"
|
||||||
|
git config user.name "CI"
|
||||||
|
git pull --rebase origin master
|
Loading…
Reference in a new issue