2016-02-02 19:43:46 +00:00
|
|
|
image: golang:1.3
|
|
|
|
|
2015-12-26 23:26:13 +00:00
|
|
|
before_script:
|
2015-12-26 23:47:09 +00:00
|
|
|
- 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/cheggaaa/pb
|
|
|
|
- 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
|
2015-12-26 23:57:24 +00:00
|
|
|
- go build -o $GOPATH/bin/gparser ./gparser
|
|
|
|
- go build -o $GOPATH/bin/gserver ./gserver
|
|
|
|
- rm -rf /tmp/goenv
|