forked from AdguardTeam/dnsproxy
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull request AdguardTeam#146: ADG-3944 add specs
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
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |