1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-12 08:23:48 +02:00
woodpecker/.drone.yml

61 lines
1.3 KiB
YAML
Raw Normal View History

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