before_script: - mkdir -p /tmp/goenv - export GOPATH=/tmp/goenv - mkdir -p /tmp/goenv/src/git.1750studios.com/gronkhDE/gogronkh - cp -R $(pwd)/* /tmp/goenv/src/git.1750studios.com/gronkhDE/gogronkh/ 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