From d148f546048faacd19d4e5077ff51c09180abf7b Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Sat, 25 Feb 2023 17:47:36 +0100 Subject: [PATCH 1/6] added ci redis test --- .drone.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index d1782a9..a9235a4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -61,7 +61,7 @@ kind: pipeline type: kubernetes name: test:pr steps: - - name: basic build test + - name: basic build image: registry.odit.services/hub/library/golang:1.20-alpine3.16 commands: - go mod download @@ -70,6 +70,16 @@ steps: CGO_ENABLED: "0" GOOS: linux GOARCH: amd64 + - name: test with redis + image: registry.odit.services/hub/library/redis:7-alpine3.16 + commands: + - redis-server & + - ./build & + - wget http://localhost:8080/axios + environment: + CGO_ENABLED: "0" + GOOS: linux + GOARCH: amd64 trigger: event: - pull_request \ No newline at end of file From 582715bc11cfd9d7d02055df862df3c63412b0ed Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Sat, 25 Feb 2023 17:51:02 +0100 Subject: [PATCH 2/6] Added delay --- .drone.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index a9235a4..71ee9a4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -73,9 +73,9 @@ steps: - name: test with redis image: registry.odit.services/hub/library/redis:7-alpine3.16 commands: - - redis-server & - - ./build & - - wget http://localhost:8080/axios + - redis-server & ./build & + - sleep 5 + - wget http://127.0.0.1:8080/axios environment: CGO_ENABLED: "0" GOOS: linux From 4df24805eb4667e8ea5526a47ffb565f7e048acc Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Sat, 25 Feb 2023 17:59:33 +0100 Subject: [PATCH 3/6] Added package list for testing --- testing/packages.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 testing/packages.txt diff --git a/testing/packages.txt b/testing/packages.txt new file mode 100644 index 0000000..9a8de4a --- /dev/null +++ b/testing/packages.txt @@ -0,0 +1,5 @@ +http://localhost:8080/axios +http://localhost:8080/svelte +http://localhost:8080/@sveltejs/kit +http://localhost:8080/release-it +http://localhost:8080/auto-changelog \ No newline at end of file From 22e7517839c61b44cda4b0ea365b0688e3e6b6d0 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Sat, 25 Feb 2023 17:59:52 +0100 Subject: [PATCH 4/6] Added automatic testing of defined package list --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 71ee9a4..496afca 100644 --- a/.drone.yml +++ b/.drone.yml @@ -70,12 +70,12 @@ steps: CGO_ENABLED: "0" GOOS: linux GOARCH: amd64 - - name: test with redis + - name: test with redis and package list image: registry.odit.services/hub/library/redis:7-alpine3.16 commands: - redis-server & ./build & - sleep 5 - - wget http://127.0.0.1:8080/axios + - xargs wget -O /dev/null Date: Sat, 25 Feb 2023 18:01:56 +0100 Subject: [PATCH 5/6] revert 4 test --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 496afca..1e89e47 100644 --- a/.drone.yml +++ b/.drone.yml @@ -70,12 +70,12 @@ steps: CGO_ENABLED: "0" GOOS: linux GOARCH: amd64 - - name: test with redis and package list + - name: test with redis image: registry.odit.services/hub/library/redis:7-alpine3.16 commands: - redis-server & ./build & - sleep 5 - - xargs wget -O /dev/null Date: Sat, 25 Feb 2023 18:03:06 +0100 Subject: [PATCH 6/6] Updated package url --- .drone.yml | 2 +- testing/packages.txt | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1e89e47..d97c642 100644 --- a/.drone.yml +++ b/.drone.yml @@ -75,7 +75,7 @@ steps: commands: - redis-server & ./build & - sleep 5 - - wget http://localhost:8080/axios + - xargs wget -O /dev/null