Merge branch 'ci-pipeline' into 'master'
Adding gitlab CI configuration See merge request khanzf/fedilogue!1
This commit is contained in:
commit
a3a01e7081
19
.gitlab-ci.yml
Normal file
19
.gitlab-ci.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
image: golang:latest
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- cd fedilogue
|
||||||
|
- go get .
|
||||||
|
- go build ./fedilogue
|
||||||
|
only:
|
||||||
|
- main
|
||||||
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- cd fedilogue
|
||||||
|
- go get .
|
||||||
|
- go test -v
|
||||||
|
only:
|
||||||
|
- merge_requests
|
Loading…
x
Reference in New Issue
Block a user