Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: clean up ci scripts #26

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions tests/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion tests/ca.crt

This file was deleted.

40 changes: 19 additions & 21 deletions tests/ci/api_common_install.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,24 @@ python --version
# in container. So the current work round is read DNS server
# from system and set the value in /etc/docker/daemon.json.

# ip addr
# docker_config_file="/etc/docker/daemon.json"
# dns_ip_string=$(netplan ip leases eth0 | grep -i dns | awk -F = '{print $2}' | tr " " "\n" | sed 's/,/","/g')
# dns=[\"${dns_ip_string}\"]
# echo dns=${dns}

# cat $docker_config_file
# if [ -f $docker_config_file ];then
# if [ $(cat /etc/docker/daemon.json |grep \"dns\" |wc -l) -eq 0 ];then
# sudo sed "s/}/,\n \"dns\": $dns\n}/" -i $docker_config_file
# fi
# else
# echo "{\"dns\": $dns}" > $docker_config_file
# fi
# cat $docker_config_file
# sudo systemctl stop docker
# sudo systemctl start docker
# sleep 2
#ip addr
#docker_config_file="/etc/docker/daemon.json"
#dns_ip_string=$(netplan ip leases eth0 | grep -i dns | awk -F = '{print $2}' | tr " " "\n" | sed 's/,/","/g')
#dns=[\"${dns_ip_string}\"]
#echo dns=${dns}
#
#cat $docker_config_file
#if [ -f $docker_config_file ];then
# if [ $(cat /etc/docker/daemon.json |grep \"dns\" |wc -l) -eq 0 ];then
# sudo sed "s/}/,\n \"dns\": $dns\n}/" -i $docker_config_file
# fi
#else
# echo "{\"dns\": $dns}" > $docker_config_file
#fi
#cat $docker_config_file
#sudo systemctl stop docker
#sudo systemctl start docker
#sleep 2
#------------------------------------------------------------#

sudo ./tests/hostcfg.sh
Expand All @@ -60,13 +60,11 @@ sed "s|# enabled: false| enabled: true|" -i make/harbor.yml
sed "s|# port: 9090| port: 9090|" -i make/harbor.yml
sed "s|# path: /metrics| path: /metrics|" -i make/harbor.yml

# build
sudo make compile build prepare COMPILETAG=compile_golangimage GOBUILDTAGS="include_oss include_gcs" BUILDBIN=true NOTARYFLAG=true TRIVYFLAG=true CHARTFLAG=true GEN_TLS=true PULL_BASE_FROM_DOCKERHUB=false

# set the debugging env
echo "GC_TIME_WINDOW_HOURS=0" | sudo tee -a ./make/common/config/core/env

# harbor-arm 添加start target
sudo make start

# waiting 5 minutes to start
Expand All @@ -75,4 +73,4 @@ for((i=1;i<=30;i++)); do
sleep 10
curl -k -L -f 127.0.0.1/api/v2.0/systeminfo && break
docker ps
done
done
28 changes: 0 additions & 28 deletions tests/ci/build_util.sh

This file was deleted.

25 changes: 0 additions & 25 deletions tests/ci/conformance_test.sh

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ci/distro_installer.sh

This file was deleted.

9 changes: 0 additions & 9 deletions tests/ci/ui_ut_run.sh

This file was deleted.

38 changes: 0 additions & 38 deletions tests/ci/ut_install.sh

This file was deleted.

20 changes: 0 additions & 20 deletions tests/ci/ut_run.sh

This file was deleted.

48 changes: 0 additions & 48 deletions tests/configharbor.py

This file was deleted.

38 changes: 0 additions & 38 deletions tests/coverage4gotest.sh

This file was deleted.

29 changes: 0 additions & 29 deletions tests/docker-compose.test.yml

This file was deleted.

49 changes: 0 additions & 49 deletions tests/generateCerts.sh

This file was deleted.

Loading