Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
---
kind: pipeline
name: default
type: vm
pool:
use: ubuntu
platform:
os: linux
arch: amd64
steps:
- name: test
pull: default
image: golang
volumes:
- name: deps
path: /go
commands:
- go get
- go test -v -cover ./...
- name: test_postgres
pull: default
image: golang
volumes:
- name: deps
path: /go
commands:
- cd store
- go test -v
environment:
DATABASE_CONFIG: host=postgres user=postgres password=password dbname=test sslmode=disable
DATABASE_DRIVER: postgres
- name: test_mysql
pull: default
image: golang
volumes:
- name: deps
path: /go
commands:
- cd store
- go test -v
environment:
DATABASE_CONFIG: "root:password@tcp(mysql:3306)/test?parseTime=true"
DATABASE_DRIVER: mysql
- name: build
pull: default
image: golang
volumes:
- name: deps
path: /go
commands:
- sh .drone.sh
- name: publish
pull: default
image: plugins/docker
settings:
auto_tag: true
repo: drone/autoscaler
password:
from_secret: docker_password
username:
from_secret: docker_username
when:
event:
- push
- tag
volumes:
- name: deps
temp: {}
services:
- name: postgres
pull: default
image: postgres:9
environment:
POSTGRES_DB: test
POSTGRES_PASSWORD: password
- name: mysql
pull: default
image: mysql:5
environment:
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: password
...