aboutsummaryrefslogtreecommitdiff
path: root/.drone.yml
blob: fc79de0fa05bc76b01f249541e86ad5262c7113d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
kind: pipeline
name: build

steps:
- name: run tests
  image: golang
  commands:
  - sleep 5
  - make dep
  - make test
  environment:
    MYSQL_TEST: true
    MYSQL_TEST_HOST: mysql-server
    MYSQL_TEST_USER: root

services:
- name: mysql-server
  image: mysql
  environment:
    MYSQL_ALLOW_EMPTY_PASSWORD: yes
    MYSQL_DATABASE: certs
  ports:
  - 3306