fix gitlab ci

This commit is contained in:
Martin/Geno 2019-02-26 01:01:03 +01:00
parent 0508a4867e
commit b928dbe0a5
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
7 changed files with 18 additions and 7 deletions

View File

@ -12,11 +12,12 @@ before_script:
build-my-project: build-my-project:
stage: build stage: build
script: script:
- go install dev.sum7.eu/$CI_PROJECT_PATH/... - go install dev.sum7.eu/$CI_PROJECT_PATH/logging/...
- mv /go/bin/$CI_PROJECT_NAME /builds/$CI_PROJECT_PATH - mv /go/bin/service /builds/mu-logging-srv
- mv /go/bin/cmd /builds/mu-logging-cmd
artifacts: artifacts:
paths: paths:
- $CI_PROJECT_NAME - mu-*
test-my-project: test-my-project:
stage: test stage: test

View File

@ -1,3 +1,9 @@
# microservices collection
Some microservices using rabbitmq # microservices collection
[![Build Status](https://dev.sum7.eu/genofire/microservices-collection/badges/master/build.svg)](https://dev.sum7.eu/genofire/microservices-collection/pipelines)
[![Go Report Card](https://goreportcard.com/badge/dev.sum7.eu/genofire/microservices-collection)](https://goreportcard.com/report/dev.sum7.eu/genofire/microservices-collection)
[![GoDoc](https://godoc.org/dev.sum7.eu/genofire/microservices-collection?status.svg)](https://godoc.org/dev.sum7.eu/genofire/microservices-collection)
Some microservices using rabbitmq

1
lib/main_test.go Normal file
View File

@ -0,0 +1 @@
package lib

1
logging/cmd/main_test.go Normal file
View File

@ -0,0 +1 @@
package main

1
logging/main_test.go Normal file
View File

@ -0,0 +1 @@
package logging

View File

@ -19,7 +19,7 @@ import (
var logRecieved = false var logRecieved = false
func main() { func main() {
flag.BoolVar(&logRecieved, "recieved", logRecieved, "show recieved log on console") flag.BoolVar(&logRecieved, "received", logRecieved, "show received log on console")
flag.Parse() flag.Parse()
lib.LogUpdateConfig() lib.LogUpdateConfig()
@ -124,5 +124,5 @@ func main() {
sigs := make(chan os.Signal, 1) sigs := make(chan os.Signal, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM) signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
sig := <-sigs sig := <-sigs
log.WithField("recieved", sig).Info("stopped") log.WithField("received", sig).Info("stopped")
} }

View File

@ -0,0 +1 @@
package main