2014-09-10 04:32:10 +00:00
|
|
|
image: go1.3
|
2014-06-12 19:51:55 +00:00
|
|
|
git:
|
|
|
|
path: github.com/drone/drone
|
2014-02-11 22:44:39 +00:00
|
|
|
env:
|
|
|
|
- GOROOT=/usr/local/go
|
2014-06-12 19:55:57 +00:00
|
|
|
- PATH=$PATH:$GOROOT/bin:$GOPATH/bin
|
2014-02-07 10:10:01 +00:00
|
|
|
script:
|
2015-02-21 01:33:44 +00:00
|
|
|
- sudo add-apt-repository ppa:git-core/ppa 1> /dev/null 2> /dev/null
|
2015-01-21 15:40:27 +00:00
|
|
|
- sudo apt-get update 1> /dev/null 2> /dev/null
|
2015-06-04 18:49:06 +00:00
|
|
|
- sudo apt-get -y install git zip libsqlite3-dev sqlite3 rpm dpkg 1> /dev/null 2> /dev/null
|
2014-10-12 16:22:51 +00:00
|
|
|
- gem install fpm
|
|
|
|
- rbenv rehash
|
2014-06-05 22:04:28 +00:00
|
|
|
- make deps
|
2014-02-07 10:10:01 +00:00
|
|
|
- make test
|
2014-10-01 06:30:42 +00:00
|
|
|
- make test_postgres
|
|
|
|
- make test_mysql
|
2014-10-12 16:22:51 +00:00
|
|
|
- make packages
|
2014-10-01 06:30:42 +00:00
|
|
|
services:
|
|
|
|
- postgres
|
|
|
|
- mysql
|
2014-02-07 10:10:01 +00:00
|
|
|
notify:
|
2014-10-15 04:53:39 +00:00
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- brad@drone.io
|
2015-02-12 06:07:12 +00:00
|
|
|
webhook:
|
|
|
|
urls:
|
|
|
|
- https://webhooks.gitter.im/e/$$GITTER_KEY
|
2014-10-12 20:02:53 +00:00
|
|
|
on_started: false
|
2015-02-12 06:16:26 +00:00
|
|
|
on_success: true
|
|
|
|
on_failure: true
|
2014-02-07 10:38:06 +00:00
|
|
|
|
2014-08-02 17:50:02 +00:00
|
|
|
publish:
|
|
|
|
s3:
|
|
|
|
acl: public-read
|
|
|
|
region: us-east-1
|
|
|
|
bucket: downloads.drone.io
|
2014-10-15 02:34:21 +00:00
|
|
|
access_key: $$AWS_KEY
|
|
|
|
secret_key: $$AWS_SECRET
|
2014-10-12 20:32:23 +00:00
|
|
|
source: packaging/output/
|
2014-09-10 04:41:11 +00:00
|
|
|
target: $DRONE_BRANCH/
|
2014-10-12 20:32:23 +00:00
|
|
|
recursive: true
|
2014-10-15 04:53:39 +00:00
|
|
|
when:
|
|
|
|
owner: drone
|
2015-06-08 00:44:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# new build script for 0.4 branch
|
|
|
|
|
|
|
|
build:
|
|
|
|
image: golang:1.4.2
|
|
|
|
environment:
|
|
|
|
- GOPATH=/drone
|
|
|
|
commands:
|
|
|
|
- apt-get update 1> /dev/null 2> /dev/null
|
|
|
|
- apt-get -y install libsqlite3-dev sqlite3 1> /dev/null 2> /dev/null
|
2015-06-08 00:47:07 +00:00
|
|
|
- go get golang.org/x/tools/cmd/vet
|
|
|
|
- go get golang.org/x/tools/cmd/cover
|
2015-06-08 00:44:26 +00:00
|
|
|
- make deps
|
|
|
|
- make test
|