diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b228192..abe9553 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,13 +7,10 @@ before_script: - cp -R $(pwd)/* /tmp/goenv/src/git.1750studios.com/gronkhDE/gogronkh/ stages: - - dependencies - - libs - build - - cleanup -dependencies: - stage: dependencies +build: + stage: build script: - go get github.com/jinzhu/gorm - go get github.com/lib/pq @@ -23,32 +20,10 @@ dependencies: - 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 -o $GOPATH/bin/gparser ./gparser - -server: - stage: build - script: - - go tool vet -composites=false -shadow=true ./gserver - go build -o $GOPATH/bin/gserver ./gserver - -cleanup: - stage: cleanup - script: - rm -rf /tmp/goenv