woodpecker/pipeline/samples/sample_2/pipeline.yml

21 lines
356 B
YAML
Raw Normal View History

2019-04-06 13:44:04 +00:00
workspace:
base: /go
path: src/github.com/go-sql-driver/mysql
steps:
2019-04-06 13:44:04 +00:00
build:
image: golang:1.7
environment:
MYSQL_TEST_ADDR: database:3306
commands:
- sleep 20
- go get -v -t
- go test -v
services:
database:
image: mysql
environment:
- MYSQL_DATABASE=gotest
- MYSQL_ALLOW_EMPTY_PASSWORD=yes