GoGronkh/.gitlab-ci.yml

29 lines
772 B
YAML
Raw Permalink Normal View History

2016-02-02 19:43:46 +00:00
image: golang:1.3
2015-12-26 23:26:13 +00:00
before_script:
- mkdir -p /tmp/goenv
- export GOPATH=/tmp/goenv
2015-12-26 23:51:23 +00:00
- mkdir -p /tmp/goenv/src/git.1750studios.com/gronkhDE/gogronkh
- cp -R $(pwd)/* /tmp/goenv/src/git.1750studios.com/gronkhDE/gogronkh/
2015-12-26 23:26:13 +00:00
stages:
- build
2016-02-02 19:52:38 +00:00
build:
stage: build
2015-12-26 23:26:13 +00:00
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