Browse Source

Add tests to drone

tags/v1.2.0^2
IamTheFij 3 months ago
parent
commit
a5f9b0866f
2 changed files with 34 additions and 4 deletions
  1. +33
    -3
      .drone.yml
  2. +1
    -1
      .pre-commit-config.yaml

+ 33
- 3
.drone.yml View File

@@ -1,11 +1,41 @@
---
kind: pipeline
name: test

steps:
- name: build
image: golang:1.12
- name: test
image: golang:1.15
commands:
- make test

- name: check
image: python:3
commands:
- make build
- pip install docker-compose pre-commit
- wget -L -O /usr/bin/hadolint https://github.com/hadolint/hadolint/releases/download/v1.18.0/hadolint-Linux-x86_64
- chmod +x /usr/bin/hadolint
- make check

# - name: itest
# image: docker/compose:alpine-1.26.2
# environment:
# VERSION: ${DRONE_TAG:-${DRONE_COMMIT}}
# commands:
# - apk add make bash
# - make itest

- name: notify
image: drillster/drone-email
settings:
host:
from_secret: SMTP_HOST # pragma: whitelist secret
username:
from_secret: SMTP_USER # pragma: whitelist secret
password:
from_secret: SMTP_PASS # pragma: whitelist secret
from: drone@iamthefij.com
when:
status: [changed, failure]

---
kind: pipeline


+ 1
- 1
.pre-commit-config.yaml View File

@@ -18,4 +18,4 @@ repos:
rev: v2.0.0
hooks:
- id: docker-compose-check
- id: hadolint
- id: hadolint-system

Loading…
Cancel
Save