diff --git a/bamboo-specs/bamboo.yaml b/bamboo-specs/bamboo.yaml new file mode 100644 index 000000000..d3f7c5855 --- /dev/null +++ b/bamboo-specs/bamboo.yaml @@ -0,0 +1,64 @@ +--- +version: 2 +plan: + project-key: AGH + key: DNSPROXYSPECS + name: dnsproxy - Build and run tests +variables: + dockerGo: adguard/golang-ubuntu:2.0 + +stages: + - Tests: + manual: false + final: false + jobs: + - Test + +Test: + docker: + image: ${bamboo.dockerGo} + volumes: + ${system.YARN_DIR}: ${bamboo.cacheYarn} + ${system.GO_CACHE_DIR}: ${bamboo.cacheGo} + ${system.GO_PKG_CACHE_DIR}: ${bamboo.cacheGoPkg} + key: TEST + tasks: + - checkout: + force-clean-build: 'true' + - script: + interpreter: SHELL + scripts: + - |- + set -x + set -e + go version + golangci-lint --version + + # Run linter + golangci-lint run + + # Run tests + go test -race -v -bench=. -coverprofile=coverage.txt ./... + final-tasks: + - clean + requirements: + - adg-docker: 'true' + +branches: + create: for-pull-request + delete: + after-deleted-days: 1 + after-inactive-days: 5 + link-to-jira: true + +notifications: + - events: + - plan-status-changed + recipients: + - webhook: + name: Build webhook + url: http://prod.jirahub.service.eu.consul/v1/webhook/bamboo + +labels: [] +other: + concurrent-build-plugin: system-default