Squashed commit of the following:
commit 16e43b10edc8218f3d1ccec711d965c654dd851d
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date: Fri Mar 28 12:32:58 2025 +0300
all: upd chlog
commit 2a8dcab14e9cf43fe941f67f215efe2801f2aa65
Merge: 95a4ea8cc 8b4768aad
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date: Fri Mar 28 12:32:05 2025 +0300
Merge branch 'master' into ADG-9744-node-20
commit 95a4ea8ccbcc8cb5911b6c33007e36a04b03e616
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date: Mon Mar 24 14:06:25 2025 +0300
bamboo-specs: fix test
commit c535028cd16bf2100b45828fe7f7693b938aaeb5
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date: Mon Mar 24 14:02:47 2025 +0300
all: imp npm cache
commit bfc9d11153446b865b9756f35753e791d4040595
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date: Fri Mar 21 19:06:37 2025 +0300
all: fix specs
commit 7127498d6aa0e0ca4585d79a15ed5f3c5e643e3a
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date: Fri Mar 21 18:50:57 2025 +0300
all: upd node; rm outdated openapi lint
239 lines
6.0 KiB
YAML
239 lines
6.0 KiB
YAML
---
|
|
'version': 2
|
|
'plan':
|
|
'project-key': 'AGH'
|
|
'key': 'AHBRTSPECS'
|
|
'name': 'AdGuard Home - Build and run tests'
|
|
'variables':
|
|
'dockerFrontend': 'adguard/home-js-builder:3.0'
|
|
'dockerGo': 'adguard/go-builder:1.24.1--1'
|
|
'channel': 'development'
|
|
|
|
'stages':
|
|
- 'Tests':
|
|
'manual': false
|
|
'final': false
|
|
'jobs':
|
|
- 'Test frontend'
|
|
- 'Test backend'
|
|
|
|
- 'Frontend':
|
|
manual: false
|
|
final: false
|
|
jobs:
|
|
- 'Build frontend'
|
|
|
|
- 'Artifact':
|
|
manual: false
|
|
final: false
|
|
jobs:
|
|
- 'Artifact'
|
|
|
|
- 'E2E':
|
|
manual: false
|
|
final: false
|
|
jobs:
|
|
- 'Test e2e'
|
|
|
|
'Test frontend':
|
|
'docker':
|
|
'image': '${bamboo.dockerFrontend}'
|
|
'volumes':
|
|
'${system.NPM_DIR}': '${bamboo.cacheNpm}'
|
|
'key': 'JSTEST'
|
|
'other':
|
|
'clean-working-dir': true
|
|
'tasks':
|
|
- 'checkout':
|
|
'force-clean-build': true
|
|
- 'script':
|
|
'interpreter': 'SHELL'
|
|
'scripts':
|
|
- |
|
|
#!/bin/sh
|
|
|
|
set -e -f -u -x
|
|
|
|
make VERBOSE=1 js-deps js-typecheck js-lint js-test
|
|
'final-tasks':
|
|
- 'clean'
|
|
'requirements':
|
|
- 'adg-docker': 'true'
|
|
|
|
# TODO(e.burkov): Add the linting stage for markdown docs and shell scripts.
|
|
'Test backend':
|
|
'docker':
|
|
'image': '${bamboo.dockerGo}'
|
|
'volumes':
|
|
'${system.GO_CACHE_DIR}': '${bamboo.cacheGo}'
|
|
'${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}'
|
|
'key': 'GOTEST'
|
|
'other':
|
|
'clean-working-dir': true
|
|
'tasks':
|
|
- 'checkout':
|
|
'force-clean-build': true
|
|
- 'script':
|
|
'interpreter': 'SHELL'
|
|
'scripts':
|
|
- |
|
|
#!/bin/sh
|
|
|
|
set -e -f -u -x
|
|
|
|
make\
|
|
GOMAXPROCS=1\
|
|
VERBOSE=1\
|
|
go-deps go-tools go-lint
|
|
|
|
make\
|
|
VERBOSE=1\
|
|
go-test
|
|
'final-tasks':
|
|
- 'clean'
|
|
'requirements':
|
|
- 'adg-docker': 'true'
|
|
|
|
'Build frontend':
|
|
'artifacts':
|
|
- 'name': 'AdGuardHome frontend'
|
|
'pattern': 'build/**'
|
|
'shared': true
|
|
'required': true
|
|
'docker':
|
|
'image': '${bamboo.dockerFrontend}'
|
|
'volumes':
|
|
'${system.NPM_DIR}': '${bamboo.cacheNpm}'
|
|
'key': 'BF'
|
|
'other':
|
|
'clean-working-dir': true
|
|
'tasks':
|
|
- 'checkout':
|
|
'force-clean-build': true
|
|
- 'script':
|
|
'interpreter': 'SHELL'
|
|
'scripts':
|
|
- |-
|
|
#!/bin/sh
|
|
|
|
set -e -f -u -x
|
|
|
|
make\
|
|
VERBOSE=1\
|
|
js-deps js-build
|
|
'requirements':
|
|
- 'adg-docker': 'true'
|
|
|
|
'Artifact':
|
|
'artifact-subscriptions':
|
|
- 'artifact': 'AdGuardHome frontend'
|
|
'artifacts':
|
|
- 'name': 'AdGuardHome_windows_amd64'
|
|
'pattern': 'dist/AdGuardHome_windows_amd64.zip'
|
|
'shared': true
|
|
'required': true
|
|
- 'name': 'AdGuardHome_darwin_amd64'
|
|
'pattern': 'dist/AdGuardHome_darwin_amd64.zip'
|
|
'shared': true
|
|
'required': true
|
|
- 'name': 'AdGuardHome_linux_amd64'
|
|
'pattern': 'dist/AdGuardHome_linux_amd64.tar.gz'
|
|
'shared': true
|
|
'required': true
|
|
'docker':
|
|
'image': '${bamboo.dockerGo}'
|
|
'volumes':
|
|
'${system.GO_CACHE_DIR}': '${bamboo.cacheGo}'
|
|
'${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}'
|
|
'key': 'ART'
|
|
'other':
|
|
'clean-working-dir': true
|
|
'tasks':
|
|
- 'checkout':
|
|
'force-clean-build': true
|
|
- 'script':
|
|
'interpreter': 'SHELL'
|
|
'scripts':
|
|
- |-
|
|
#!/bin/sh
|
|
|
|
set -e -f -u -x
|
|
|
|
make\
|
|
ARCH="amd64"\
|
|
CHANNEL=${bamboo.channel}\
|
|
FRONTEND_PREBUILT=1\
|
|
OS="windows darwin linux"\
|
|
PARALLELISM=1\
|
|
SIGN=0\
|
|
VERBOSE=2\
|
|
build-release
|
|
'requirements':
|
|
- 'adg-docker': 'true'
|
|
|
|
'Test e2e':
|
|
'artifact-subscriptions':
|
|
- 'artifact': 'AdGuardHome_linux_amd64'
|
|
- 'artifact': 'AdGuardHome frontend'
|
|
'docker':
|
|
'image': '${bamboo.dockerFrontend}'
|
|
'volumes':
|
|
'${system.NPM_DIR}': '${bamboo.cacheNpm}'
|
|
'key': 'E2ETEST'
|
|
'other':
|
|
'clean-working-dir': true
|
|
'tasks':
|
|
- 'checkout':
|
|
'force-clean-build': true
|
|
- 'script':
|
|
'interpreter': 'SHELL'
|
|
'scripts':
|
|
- |
|
|
#!/bin/sh
|
|
|
|
set -e -f -u -x
|
|
|
|
export CI=true
|
|
|
|
tar -xzf dist/AdGuardHome_linux_amd64.tar.gz -C /tmp
|
|
|
|
mv /tmp/AdGuardHome/AdGuardHome ./AdGuardHome
|
|
|
|
make VERBOSE=1 js-deps js-test-e2e
|
|
'requirements':
|
|
- 'adg-docker': 'true'
|
|
|
|
'branches':
|
|
'create': 'for-pull-request'
|
|
'delete':
|
|
'after-deleted-days': 1
|
|
'after-inactive-days': 5
|
|
'integration':
|
|
'push-on-success': false
|
|
'merge-from': 'AdGuard Home - Build and run tests'
|
|
'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'
|
|
|
|
'branch-overrides':
|
|
# rc-vX.Y.Z branches are the release candidate branches. They are created
|
|
# from the release branch and are used to build the release candidate
|
|
# images.
|
|
- '^rc-v[0-9]+\.[0-9]+\.[0-9]+':
|
|
# Set the default release channel on the release branch to beta, as we
|
|
# may need to build a few of these.
|
|
'variables':
|
|
'dockerFrontend': 'adguard/home-js-builder:3.0'
|
|
'dockerGo': 'adguard/go-builder:1.24.1--1'
|
|
'channel': 'candidate'
|