-
Notifications
You must be signed in to change notification settings - Fork 2
/
.drone.yaml
39 lines (39 loc) · 1012 Bytes
/
.drone.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
kind: pipeline
type: kubernetes
name: test-and-sonarqube
steps:
- name: test
image: golang
commands:
- go build
- go test -v github.com/broodjeaap/go-watch/web -coverprofile=cov.out
- name: sonarqube
image: sonarsource/sonar-scanner-cli
environment:
SONAR_HOST_URL: https://sonarqube.broodjeaap.net
SONAR_SCANNER_OPTS: -Dsonar.projectKey=go-watch -Dsonar.projectBaseDir=/drone/src/ -Dsonar.sources=. -Dsonar.exclusions=**/*.js,**/*_test.go -Dsonar.tests=. -Dsonar.test.inclusions=**/*_test.go -Dsonar.go.coverage.reportPaths=/drone/src/cov.out
SONAR_TOKEN:
from_secret: sonarqube_token
trigger:
branch:
- master
event:
- push
---
kind: pipeline
type: kubernetes
name: github-push
steps:
- name: push commit
image: appleboy/drone-git-push:0.2.0-linux-amd64
settings:
branch: master
remote: [email protected]:broodjeaap/go-watch.git
force: true
ssh_key:
from_secret: id_rsa
trigger:
branch:
- master
event:
- push