Browse Source

Add tests to drone

drone-itest
IamTheFij 10 months ago
parent
commit
a5f9b0866f
  1. 36
      .drone.yml
  2. 2
      .pre-commit-config.yaml

36
.drone.yml

@ -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

2
.pre-commit-config.yaml

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