Skip to content

Commit

Permalink
Pull request AdguardTeam#146: ADG-3944 add specs
Browse files Browse the repository at this point in the history
Merge in DNS/dnsproxy from add-specs to master

* commit 'b4adffa743737a2d3288dd3bd7c3e689adedcd70':
  remove redundant go param
  Revert "remove makefile, remove redundant go param"
  Revert "change docker image"
  change docker image
  remove makefile, remove redundant go param
  some fixes
  ADG-3944 add specs
  • Loading branch information
Ilya Tikhonov committed Apr 6, 2021
2 parents 7534c25 + b4adffa commit fa7c8ce
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions bamboo-specs/bamboo.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fa7c8ce

Please sign in to comment.