2021-04-08 13:55:12 +03:00
|
|
|
---
|
|
|
|
'version': 2
|
|
|
|
'plan':
|
2023-06-21 17:47:16 +03:00
|
|
|
'project-key': 'AGH'
|
|
|
|
'key': 'AHBRTSPECS'
|
|
|
|
'name': 'AdGuard Home - Build and run tests'
|
2021-04-08 13:55:12 +03:00
|
|
|
'variables':
|
2024-07-03 15:08:17 +03:00
|
|
|
'dockerFrontend': 'adguard/home-js-builder:2.0'
|
|
|
|
'dockerGo': 'adguard/go-builder:1.22.5--1'
|
2024-02-16 19:19:00 +03:00
|
|
|
'channel': 'development'
|
2021-04-08 13:55:12 +03:00
|
|
|
|
|
|
|
'stages':
|
2023-06-21 17:47:16 +03:00
|
|
|
- 'Tests':
|
|
|
|
'manual': false
|
|
|
|
'final': false
|
|
|
|
'jobs':
|
2024-03-20 19:03:46 +03:00
|
|
|
- 'Test frontend'
|
|
|
|
- 'Test backend'
|
|
|
|
|
|
|
|
- 'Frontend':
|
|
|
|
manual: false
|
|
|
|
final: false
|
|
|
|
jobs:
|
|
|
|
- 'Build frontend'
|
2021-04-08 13:55:12 +03:00
|
|
|
|
2023-08-10 15:02:55 +03:00
|
|
|
- 'Artifact':
|
|
|
|
manual: false
|
|
|
|
final: false
|
|
|
|
jobs:
|
|
|
|
- 'Artifact'
|
|
|
|
|
2024-03-20 19:03:46 +03:00
|
|
|
'Test frontend':
|
2023-06-21 17:47:16 +03:00
|
|
|
'docker':
|
2024-03-20 19:03:46 +03:00
|
|
|
'image': '${bamboo.dockerFrontend}'
|
2023-06-21 17:47:16 +03:00
|
|
|
'volumes':
|
|
|
|
'${system.YARN_DIR}': '${bamboo.cacheYarn}'
|
2024-03-20 19:03:46 +03:00
|
|
|
'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-lint js-test
|
|
|
|
'final-tasks':
|
|
|
|
- 'clean'
|
|
|
|
'requirements':
|
|
|
|
- 'adg-docker': 'true'
|
|
|
|
|
|
|
|
'Test backend':
|
|
|
|
'docker':
|
|
|
|
'image': '${bamboo.dockerGo}'
|
|
|
|
'volumes':
|
2023-06-21 17:47:16 +03:00
|
|
|
'${system.GO_CACHE_DIR}': '${bamboo.cacheGo}'
|
|
|
|
'${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}'
|
2024-03-20 19:03:46 +03:00
|
|
|
'key': 'GOTEST'
|
2023-06-21 17:47:16 +03:00
|
|
|
'other':
|
|
|
|
'clean-working-dir': true
|
|
|
|
'tasks':
|
|
|
|
- 'checkout':
|
|
|
|
'force-clean-build': true
|
|
|
|
- 'script':
|
|
|
|
'interpreter': 'SHELL'
|
|
|
|
'scripts':
|
|
|
|
- |
|
|
|
|
#!/bin/sh
|
2021-04-08 13:55:12 +03:00
|
|
|
|
2023-06-21 17:47:16 +03:00
|
|
|
set -e -f -u -x
|
2021-04-08 13:55:12 +03:00
|
|
|
|
2024-03-21 18:45:34 +03:00
|
|
|
make\
|
|
|
|
GOMAXPROCS=1\
|
|
|
|
VERBOSE=1\
|
|
|
|
go-deps go-tools go-lint
|
|
|
|
|
|
|
|
make\
|
|
|
|
VERBOSE=1\
|
|
|
|
go-test
|
2023-06-21 17:47:16 +03:00
|
|
|
'final-tasks':
|
|
|
|
- 'clean'
|
|
|
|
'requirements':
|
|
|
|
- 'adg-docker': 'true'
|
2021-04-08 13:55:12 +03:00
|
|
|
|
2024-03-20 19:03:46 +03:00
|
|
|
'Build frontend':
|
|
|
|
'artifacts':
|
|
|
|
- 'name': 'AdGuardHome frontend'
|
|
|
|
'pattern': 'build/**'
|
|
|
|
'shared': true
|
|
|
|
'required': true
|
2023-08-10 15:02:55 +03:00
|
|
|
'docker':
|
2024-03-20 19:03:46 +03:00
|
|
|
'image': '${bamboo.dockerFrontend}'
|
2023-08-10 15:02:55 +03:00
|
|
|
'volumes':
|
2024-03-20 19:03:46 +03:00
|
|
|
'${system.YARN_DIR}': '${bamboo.cacheYarn}'
|
|
|
|
'key': 'BF'
|
2023-08-10 15:02:55 +03:00
|
|
|
'other':
|
|
|
|
'clean-working-dir': true
|
|
|
|
'tasks':
|
|
|
|
- 'checkout':
|
|
|
|
'force-clean-build': true
|
|
|
|
- 'script':
|
|
|
|
'interpreter': 'SHELL'
|
|
|
|
'scripts':
|
|
|
|
- |-
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e -f -u -x
|
|
|
|
|
|
|
|
make\
|
2024-03-20 19:03:46 +03:00
|
|
|
VERBOSE=1\
|
|
|
|
js-deps js-build
|
|
|
|
'requirements':
|
|
|
|
- 'adg-docker': 'true'
|
|
|
|
|
|
|
|
'Artifact':
|
|
|
|
'artifact-subscriptions':
|
|
|
|
- 'artifact': 'AdGuardHome frontend'
|
2023-08-10 15:02:55 +03:00
|
|
|
'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
|
2024-03-20 19:03:46 +03:00
|
|
|
'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
|
2023-08-10 15:02:55 +03:00
|
|
|
'requirements':
|
|
|
|
- 'adg-docker': 'true'
|
|
|
|
|
2021-04-08 13:55:12 +03:00
|
|
|
'branches':
|
2023-06-21 17:47:16 +03:00
|
|
|
'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
|
2021-04-08 13:55:12 +03:00
|
|
|
|
|
|
|
'notifications':
|
2023-06-21 17:47:16 +03:00
|
|
|
- 'events':
|
|
|
|
- 'plan-status-changed'
|
|
|
|
'recipients':
|
|
|
|
- 'webhook':
|
|
|
|
'name': 'Build webhook'
|
|
|
|
'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo'
|
2021-04-08 13:55:12 +03:00
|
|
|
|
|
|
|
'labels': []
|
|
|
|
'other':
|
2023-06-21 17:47:16 +03:00
|
|
|
'concurrent-build-plugin': 'system-default'
|
2024-02-16 19:19:00 +03:00
|
|
|
|
|
|
|
'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':
|
2024-07-03 16:05:17 +03:00
|
|
|
'dockerFrontend': 'adguard/home-js-builder:2.0'
|
|
|
|
'dockerGo': 'adguard/go-builder:1.22.5--1'
|
2024-02-16 19:19:00 +03:00
|
|
|
'channel': 'candidate'
|