Merge branch 'pipelinetests' into 'master'
Adding testing for all subcomponents to CI pipeline See merge request khanzf/fedilogue!11
This commit is contained in:
commit
ea72c19b37
@ -5,9 +5,19 @@ build:
|
|||||||
script:
|
script:
|
||||||
- cd fedilogue
|
- cd fedilogue
|
||||||
- go get .
|
- go get .
|
||||||
- go build ./fedilogue
|
- go build
|
||||||
|
- cd ../fedictl
|
||||||
|
- go build
|
||||||
|
- cd ../restapi
|
||||||
|
- go build
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
|
artifacts:
|
||||||
|
name: "$CI_JOB_NAME"
|
||||||
|
paths:
|
||||||
|
- fedilogue/fedilogue
|
||||||
|
- fedictl/fedictl
|
||||||
|
- restapi/restapi
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
@ -15,5 +25,11 @@ test:
|
|||||||
- cd fedilogue
|
- cd fedilogue
|
||||||
- go get .
|
- go get .
|
||||||
- go test -v
|
- go test -v
|
||||||
|
- cd ../fedictl
|
||||||
|
- go get .
|
||||||
|
- go test -v
|
||||||
|
- cd ../restapi
|
||||||
|
- go get .
|
||||||
|
- go test -v
|
||||||
only:
|
only:
|
||||||
- merge_requests
|
- merge_requests
|
||||||
|
@ -52,7 +52,7 @@ func gettrends() {
|
|||||||
|
|
||||||
data, err := json.Marshal(totalJson)
|
data, err := json.Marshal(totalJson)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("error marshaling combined activity: %v", err)
|
log.Fatalf("error marshaling combined activity: %v\n", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
trendingexport = string(data)
|
trendingexport = string(data)
|
||||||
@ -140,7 +140,7 @@ func search(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
data, err := json.Marshal(totalJson)
|
data, err := json.Marshal(totalJson)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("error marshaling combined activity: %v", err)
|
log.Fatalf("error marshaling combined activity: %v\n", err)
|
||||||
}
|
}
|
||||||
fmt.Fprintf(w, "%s", data)
|
fmt.Fprintf(w, "%s", data)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user