mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-12-23 10:38:58 +00:00
test: fix cgo errors before building
This commit is contained in:
parent
8beb6a284f
commit
f77ca7726c
@ -153,7 +153,10 @@ jobs:
|
|||||||
- stage: "Build and test edge images"
|
- stage: "Build and test edge images"
|
||||||
if: type = pull_request
|
if: type = pull_request
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get update && sudo apt-get -y install docker-compose
|
- sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
|
||||||
|
- sudo chmod +x /usr/local/bin/docker-compose
|
||||||
|
- sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
|
||||||
|
- sudo apt-get update && sudo apt-get -y install w3m
|
||||||
script:
|
script:
|
||||||
- docker build -t frappe/frappe-socketio:edge -f build/frappe-socketio/Dockerfile .
|
- docker build -t frappe/frappe-socketio:edge -f build/frappe-socketio/Dockerfile .
|
||||||
- docker build -t frappe/frappe-worker:develop -f build/frappe-worker/Dockerfile .
|
- docker build -t frappe/frappe-worker:develop -f build/frappe-worker/Dockerfile .
|
||||||
@ -164,7 +167,7 @@ jobs:
|
|||||||
- stage: "Pull and test edge images"
|
- stage: "Pull and test edge images"
|
||||||
if: branch = develop AND type != pull_request
|
if: branch = develop AND type != pull_request
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get update && sudo apt-get -y install docker-compose
|
- sudo apt-get update && sudo apt-get -y install docker-compose w3m
|
||||||
script:
|
script:
|
||||||
- ./tests/docker-test.sh
|
- ./tests/docker-test.sh
|
||||||
- stage: "Helm Chart Release"
|
- stage: "Helm Chart Release"
|
||||||
|
@ -80,7 +80,7 @@ curl -sS http://test.localhost/api/method/version
|
|||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
|
|
||||||
echo -e "\e[1m\e[4mCheck Created Site Index Page\e[0m"
|
echo -e "\e[1m\e[4mCheck Created Site Index Page\e[0m"
|
||||||
curl -s http://test.localhost # | w3m -T text/html -dump
|
curl -s http://test.localhost | w3m -T text/html -dump
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
|
|
||||||
echo -e "\e[1m\e[4mSet version to edge\e[0m"
|
echo -e "\e[1m\e[4mSet version to edge\e[0m"
|
||||||
@ -94,12 +94,6 @@ docker-compose \
|
|||||||
-f installation/docker-compose-erpnext.yml \
|
-f installation/docker-compose-erpnext.yml \
|
||||||
-f installation/erpnext-publish.yml \
|
-f installation/erpnext-publish.yml \
|
||||||
stop
|
stop
|
||||||
docker-compose \
|
|
||||||
--project-name frappebench00 \
|
|
||||||
-f installation/docker-compose-common.yml \
|
|
||||||
-f installation/docker-compose-erpnext.yml \
|
|
||||||
-f installation/erpnext-publish.yml \
|
|
||||||
pull
|
|
||||||
docker-compose \
|
docker-compose \
|
||||||
--project-name frappebench00 \
|
--project-name frappebench00 \
|
||||||
-f installation/docker-compose-common.yml \
|
-f installation/docker-compose-common.yml \
|
||||||
@ -116,7 +110,7 @@ curl -sS http://test.localhost/api/method/version
|
|||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
|
|
||||||
echo -e "\e[1m\e[4mCheck Migrated Site Index Page\e[0m"
|
echo -e "\e[1m\e[4mCheck Migrated Site Index Page\e[0m"
|
||||||
curl -s http://test.localhost # | w3m -T text/html -dump
|
curl -s http://test.localhost | w3m -T text/html -dump
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
|
|
||||||
echo -e "\e[1m\e[4mBackup site\e[0m"
|
echo -e "\e[1m\e[4mBackup site\e[0m"
|
||||||
@ -227,7 +221,7 @@ echo $RESTORE_STATUS
|
|||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
|
|
||||||
echo -e "\e[1m\e[4mCheck Restored Site Index Page\e[0m"
|
echo -e "\e[1m\e[4mCheck Restored Site Index Page\e[0m"
|
||||||
curl -s http://test.localhost # | w3m -T text/html -dump
|
curl -s http://test.localhost | w3m -T text/html -dump
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
|
|
||||||
echo -e "\e[1m\e[4mCreate new site (edge)\e[0m"
|
echo -e "\e[1m\e[4mCreate new site (edge)\e[0m"
|
||||||
@ -266,7 +260,7 @@ echo $RESTORE_STATUS
|
|||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
|
|
||||||
echo -e "\e[1m\e[4mCheck New Edge Index Page\e[0m"
|
echo -e "\e[1m\e[4mCheck New Edge Index Page\e[0m"
|
||||||
curl -s http://edge.localhost # | w3m -T text/html -dump
|
curl -s http://edge.localhost | w3m -T text/html -dump
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
|
|
||||||
echo -e "\e[1m\e[4mMigrate command in edge container\e[0m"
|
echo -e "\e[1m\e[4mMigrate command in edge container\e[0m"
|
||||||
@ -320,7 +314,7 @@ echo $RESTORE_STATUS
|
|||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
|
|
||||||
echo -e "\e[1m\e[4mCheck Overwritten Index Page\e[0m"
|
echo -e "\e[1m\e[4mCheck Overwritten Index Page\e[0m"
|
||||||
curl -s http://test.localhost # | w3m -T text/html -dump
|
curl -s http://test.localhost | w3m -T text/html -dump
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
|
|
||||||
echo -e "\e[1m\e[4mCheck console command for site test.localhost\e[0m"
|
echo -e "\e[1m\e[4mCheck console command for site test.localhost\e[0m"
|
||||||
|
Loading…
Reference in New Issue
Block a user