2016-10-05 19:37:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Copyright 2016 The Kubernetes Authors All rights reserved.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
|
2019-08-06 23:33:04 +00:00
|
|
|
# This script runs the integration tests on an macOS machine for the VirtualBox Driver
|
2016-10-05 19:37:32 +00:00
|
|
|
|
2016-12-24 04:11:05 +00:00
|
|
|
# The script expects the following env variables:
|
2016-10-05 19:37:32 +00:00
|
|
|
# MINIKUBE_LOCATION: GIT_COMMIT from upstream build.
|
|
|
|
# COMMIT: Actual commit ID from upstream build
|
|
|
|
# EXTRA_BUILD_ARGS (optional): Extra args to be passed into the minikube integrations tests
|
2018-06-19 18:49:21 +00:00
|
|
|
# access_token: The Github API access token. Injected by the Jenkins credential provider.
|
2016-10-05 19:37:32 +00:00
|
|
|
|
|
|
|
|
2021-05-06 23:23:41 +00:00
|
|
|
OS="darwin"
|
|
|
|
ARCH="amd64"
|
2021-05-06 19:43:16 +00:00
|
|
|
DRIVER="virtualbox"
|
2019-08-06 23:33:04 +00:00
|
|
|
JOB_NAME="VirtualBox_macOS"
|
2020-12-09 00:18:12 +00:00
|
|
|
EXTRA_START_ARGS="--bootstrapper=kubeadm"
|
2019-10-24 22:26:34 +00:00
|
|
|
# hyperkit behaves better, so it has higher precedence.
|
|
|
|
# Assumes that hyperkit is also installed on the VirtualBox CI host.
|
2019-10-24 04:15:33 +00:00
|
|
|
EXPECTED_DEFAULT_DRIVER="hyperkit"
|
|
|
|
|
2016-10-05 19:37:32 +00:00
|
|
|
|
2019-10-30 16:33:43 +00:00
|
|
|
mkdir -p cron && gsutil -qm rsync "gs://minikube-builds/${MINIKUBE_LOCATION}/cron" cron || echo "FAILED TO GET CRON FILES"
|
|
|
|
install cron/cleanup_and_reboot_Darwin.sh $HOME/cleanup_and_reboot.sh || echo "FAILED TO GET INSTALL CLEANUP"
|
2019-10-30 04:33:39 +00:00
|
|
|
echo "*/30 * * * * $HOME/cleanup_and_reboot.sh" | crontab
|
2019-10-29 23:10:13 +00:00
|
|
|
crontab -l
|
2019-10-17 19:19:43 +00:00
|
|
|
|
2021-05-06 20:05:02 +00:00
|
|
|
source common.sh
|