mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 20:31:10 +00:00
60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
image: go1.3
|
|
git:
|
|
path: github.com/drone/drone
|
|
env:
|
|
- GOROOT=/usr/local/go
|
|
- PATH=$PATH:$GOROOT/bin:$GOPATH/bin
|
|
script:
|
|
- sudo add-apt-repository ppa:git-core/ppa 1> /dev/null 2> /dev/null
|
|
- sudo apt-get update 1> /dev/null 2> /dev/null
|
|
- sudo apt-get -y install git zip libsqlite3-dev sqlite3 rpm dpkg 1> /dev/null 2> /dev/null
|
|
- gem install fpm
|
|
- rbenv rehash
|
|
- make deps
|
|
- make test
|
|
- make test_postgres
|
|
- make test_mysql
|
|
- make packages
|
|
services:
|
|
- postgres
|
|
- mysql
|
|
notify:
|
|
email:
|
|
recipients:
|
|
- brad@drone.io
|
|
webhook:
|
|
urls:
|
|
- https://webhooks.gitter.im/e/$$GITTER_KEY
|
|
on_started: false
|
|
on_success: true
|
|
on_failure: true
|
|
|
|
publish:
|
|
s3:
|
|
acl: public-read
|
|
region: us-east-1
|
|
bucket: downloads.drone.io
|
|
access_key: $$AWS_KEY
|
|
secret_key: $$AWS_SECRET
|
|
source: packaging/output/
|
|
target: $DRONE_BRANCH/
|
|
recursive: true
|
|
when:
|
|
owner: drone
|
|
|
|
|
|
|
|
|
|
# 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
|
|
- go get golang.org/x/tools/cmd/vet
|
|
- go get golang.org/x/tools/cmd/cover
|
|
- make deps
|
|
- make test
|