1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-30 10:11:23 +02:00
woodpecker/cncd/pipeline/samples/sample_2/pipeline.yml
2019-04-06 15:44:04 +02:00

21 lines
359 B
YAML

workspace:
base: /go
path: src/github.com/go-sql-driver/mysql
pipeline:
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