2016-08-06 15:01:27 +00:00
|
|
|
pipeline:
|
2016-09-22 01:34:13 +00:00
|
|
|
# restore the cache from an sftp server
|
|
|
|
restore_cache:
|
|
|
|
image: appleboy/drone-sftp-cache
|
|
|
|
restore: true
|
|
|
|
mount: [ .glide, vendor ]
|
|
|
|
ignore_branch: true
|
|
|
|
|
2016-08-06 15:01:27 +00:00
|
|
|
build:
|
2016-08-29 07:32:03 +00:00
|
|
|
image: appleboy/golang-testing:${GO_VERSION}
|
2016-08-06 15:01:27 +00:00
|
|
|
environment:
|
|
|
|
- GOPATH=/go
|
|
|
|
commands:
|
|
|
|
- make install
|
|
|
|
- coverage all
|
|
|
|
|
2016-09-21 08:27:02 +00:00
|
|
|
line:
|
|
|
|
image: appleboy/drone-line
|
|
|
|
pull: true
|
|
|
|
to: u359650f919427b5229330c7205c47ee4
|
|
|
|
when:
|
|
|
|
status: [ success, failure ]
|
|
|
|
|
2016-09-28 02:12:08 +00:00
|
|
|
facebook:
|
|
|
|
image: appleboy/drone-facebook
|
|
|
|
pull: true
|
|
|
|
to: 1234973386524610
|
|
|
|
when:
|
|
|
|
status: [ success, failure ]
|
|
|
|
|
2016-09-22 01:34:13 +00:00
|
|
|
# rebuild the cache on the sftp server
|
|
|
|
rebuild_cache:
|
|
|
|
image: appleboy/drone-sftp-cache
|
|
|
|
rebuild: true
|
|
|
|
mount: [ .glide, vendor ]
|
|
|
|
ignore_branch: true
|
2016-09-22 08:34:07 +00:00
|
|
|
when:
|
|
|
|
branch: master
|
2016-09-22 01:34:13 +00:00
|
|
|
|
2016-08-06 15:01:27 +00:00
|
|
|
services:
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
path: /go/src/github.com/appleboy/gorush
|
2016-08-29 07:32:03 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
GO_VERSION:
|
2016-09-16 02:55:47 +00:00
|
|
|
- 1.7.1
|
|
|
|
- 1.6.3
|