Adding CI
This commit is contained in:
parent
d46ef729b0
commit
8e3868c1fa
43
.gitlab-ci.yml
Normal file
43
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
before_script:
|
||||||
|
- export GOPATH=$(pwd)
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- dependencies
|
||||||
|
- libs
|
||||||
|
- build
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
stage: dependencies
|
||||||
|
script:
|
||||||
|
- go get github.com/jinzhu/gorm
|
||||||
|
- go get github.com/lib/pq
|
||||||
|
- go get github.com/ChannelMeter/iso8601duration
|
||||||
|
- go get github.com/PuerkitoBio/goquery
|
||||||
|
- go get github.com/cheggaaa/pb
|
||||||
|
- go get github.com/robfig/cron
|
||||||
|
- go get github.com/gin-gonic/gin
|
||||||
|
- go get github.com/jinzhu/copier
|
||||||
|
|
||||||
|
buildLibs:
|
||||||
|
stage: libs
|
||||||
|
script:
|
||||||
|
- go tool vet -composites=false -shadow=true ./config
|
||||||
|
- go build ./config
|
||||||
|
- go tool vet -composites=false -shadow=true ./database
|
||||||
|
- go build ./database
|
||||||
|
- go tool vet -composites=false -shadow=true ./image
|
||||||
|
- go build ./image
|
||||||
|
- go tool vet -composites=false -shadow=true ./youtube
|
||||||
|
- go build ./youtube
|
||||||
|
|
||||||
|
parser:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- go tool vet -composites=false -shadow=true ./gparser
|
||||||
|
- go build ./gparser
|
||||||
|
|
||||||
|
server:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- go tool vet -composites=false -shadow=true ./gserver
|
||||||
|
- go build ./gserver
|
Loading…
Reference in a new issue