[AIRFLOW-5083] Move image building to before_install for licence (#5695)
This commit is contained in:
Родитель
cb72be07a1
Коммит
9267c5e19e
|
@ -173,7 +173,11 @@ function update_all_md5_files() {
|
|||
do
|
||||
move_file_md5sum "${AIRFLOW_SOURCES}/${FILE}"
|
||||
done
|
||||
touch "${BUILD_CACHE_DIR}/.built_${THE_IMAGE}_${PYTHON_VERSION}"
|
||||
local SUFFIX=""
|
||||
if [[ -n ${PYTHON_VERSION:=""} ]]; then
|
||||
SUFFIX="_${PYTHON_VERSION}"
|
||||
fi
|
||||
touch "${BUILD_CACHE_DIR}/.built_${THE_IMAGE}${SUFFIX}"
|
||||
}
|
||||
|
||||
#
|
||||
|
|
|
@ -34,8 +34,10 @@ export AIRFLOW_CONTAINER_FORCE_PULL_IMAGES="true"
|
|||
# Cleanup docker installation. It should be empty in CI but let's not risk
|
||||
docker system prune --all --force
|
||||
|
||||
if [[ ${TRAVIS_JOB_NAME} == "Tests"* || ${TRAVIS_JOB_NAME} == "Check license header" ]]; then
|
||||
if [[ ${TRAVIS_JOB_NAME} == "Tests"* ]]; then
|
||||
rebuild_image_if_needed_for_tests
|
||||
elif [[ ${TRAVIS_JOB_NAME} == "Check license header" ]]; then
|
||||
rebuild_image_for_checklicence
|
||||
else
|
||||
rebuild_image_if_needed_for_static_checks
|
||||
fi
|
||||
|
|
|
@ -20,6 +20,8 @@ set -uo pipefail
|
|||
|
||||
MY_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
export PYTHON_VERSION=3.5
|
||||
|
||||
# shellcheck source=./_utils.sh
|
||||
. "${MY_DIR}/_utils.sh"
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче