GoGronkh/.gitlab-ci.yml

29 lines
772 B
YAML

image: golang:1.3
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:
- build
build:
stage: build
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/robfig/cron
- go get github.com/gin-gonic/gin
- go get github.com/jinzhu/copier
- go build ./config
- go build ./database
- go build ./image
- go build ./youtube
- go build -o $GOPATH/bin/gparser ./gparser
- go build -o $GOPATH/bin/gserver ./gserver
- rm -rf /tmp/goenv