AdGuardHome/bamboo-specs/test.yaml

193 lines
4.9 KiB
YAML
Raw Normal View History

---
'version': 2
'plan':
'project-key': 'AGH'
'key': 'AHBRTSPECS'
'name': 'AdGuard Home - Build and run tests'
'variables':
'dockerFrontend': 'adguard/home-js-builder:1.1'
'dockerGo': 'adguard/go-builder:1.21.8--1'
'channel': 'development'
'stages':
- 'Tests':
'manual': false
'final': false
'jobs':
- 'Test frontend'
- 'Test backend'
- 'Frontend':
manual: false
final: false
jobs:
- 'Build frontend'
Pull request: AG-18118-bamboo-artifacts Squashed commit of the following: commit 217790cf2ab0adf3df9f24f1f40c2bc9a310b7ee Merge: c5226c823 418c830e5 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 14:45:59 2023 +0300 Merge remote-tracking branch 'origin/master' into AG-18118-bamboo-artifacts commit c5226c823afba20abb9cc0db028ef232a40171a3 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 12:35:35 2023 +0300 all: bamboo artifacts commit c540cc3a92b8d1cfc48e0c36be0f0e4f1600d9bf Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 12:25:40 2023 +0300 all: bamboo artifacts commit b6aa24b00e2baff16a3aab45eca737391ef9cf90 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 11:07:02 2023 +0300 all: revert bamboo expire conf commit abf46235baf7d7de71cf89d2ae9e14290eaecc39 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 10:55:44 2023 +0300 all: bamboo artifacts commit 77bd6e0aa06cfa4e5364abca4a8e19d2308ee9f0 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 09:49:57 2023 +0300 all: bamboo artifacts commit 37aea65e0c2a5a77a02dd927aa3c52937988a2f7 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 09:41:48 2023 +0300 all: bamboo artifacts commit d26c50960a12c3db62ff54d69d16cd6d3c0d2ee9 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 17:20:20 2023 +0300 all: bamboo artifacts commit 3afc5be520ac2c11196ac6a8b58e112ec140a760 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 17:09:04 2023 +0300 all: bamboo artifacts commit 2ecf440fbff7feb837a4cf650d105e83d2b5efed Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 17:00:22 2023 +0300 all: bamboo artifacts commit 2f1c4a1c712bd900d0b1c86db9c343ccd1b9dfaa Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 16:26:23 2023 +0300 all: bamboo artifacts
2023-08-10 15:02:55 +03:00
- 'Artifact':
manual: false
final: false
jobs:
- 'Artifact'
'Test frontend':
'docker':
'image': '${bamboo.dockerFrontend}'
'volumes':
'${system.YARN_DIR}': '${bamboo.cacheYarn}'
'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':
'${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 VERBOSE=1 go-deps go-tools go-lint go-test
'final-tasks':
- 'clean'
'requirements':
- 'adg-docker': 'true'
'Build frontend':
'artifacts':
- 'name': 'AdGuardHome frontend'
'pattern': 'build/**'
'shared': true
'required': true
Pull request: AG-18118-bamboo-artifacts Squashed commit of the following: commit 217790cf2ab0adf3df9f24f1f40c2bc9a310b7ee Merge: c5226c823 418c830e5 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 14:45:59 2023 +0300 Merge remote-tracking branch 'origin/master' into AG-18118-bamboo-artifacts commit c5226c823afba20abb9cc0db028ef232a40171a3 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 12:35:35 2023 +0300 all: bamboo artifacts commit c540cc3a92b8d1cfc48e0c36be0f0e4f1600d9bf Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 12:25:40 2023 +0300 all: bamboo artifacts commit b6aa24b00e2baff16a3aab45eca737391ef9cf90 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 11:07:02 2023 +0300 all: revert bamboo expire conf commit abf46235baf7d7de71cf89d2ae9e14290eaecc39 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 10:55:44 2023 +0300 all: bamboo artifacts commit 77bd6e0aa06cfa4e5364abca4a8e19d2308ee9f0 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 09:49:57 2023 +0300 all: bamboo artifacts commit 37aea65e0c2a5a77a02dd927aa3c52937988a2f7 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 09:41:48 2023 +0300 all: bamboo artifacts commit d26c50960a12c3db62ff54d69d16cd6d3c0d2ee9 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 17:20:20 2023 +0300 all: bamboo artifacts commit 3afc5be520ac2c11196ac6a8b58e112ec140a760 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 17:09:04 2023 +0300 all: bamboo artifacts commit 2ecf440fbff7feb837a4cf650d105e83d2b5efed Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 17:00:22 2023 +0300 all: bamboo artifacts commit 2f1c4a1c712bd900d0b1c86db9c343ccd1b9dfaa Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 16:26:23 2023 +0300 all: bamboo artifacts
2023-08-10 15:02:55 +03:00
'docker':
'image': '${bamboo.dockerFrontend}'
Pull request: AG-18118-bamboo-artifacts Squashed commit of the following: commit 217790cf2ab0adf3df9f24f1f40c2bc9a310b7ee Merge: c5226c823 418c830e5 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 14:45:59 2023 +0300 Merge remote-tracking branch 'origin/master' into AG-18118-bamboo-artifacts commit c5226c823afba20abb9cc0db028ef232a40171a3 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 12:35:35 2023 +0300 all: bamboo artifacts commit c540cc3a92b8d1cfc48e0c36be0f0e4f1600d9bf Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 12:25:40 2023 +0300 all: bamboo artifacts commit b6aa24b00e2baff16a3aab45eca737391ef9cf90 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 11:07:02 2023 +0300 all: revert bamboo expire conf commit abf46235baf7d7de71cf89d2ae9e14290eaecc39 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 10:55:44 2023 +0300 all: bamboo artifacts commit 77bd6e0aa06cfa4e5364abca4a8e19d2308ee9f0 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 09:49:57 2023 +0300 all: bamboo artifacts commit 37aea65e0c2a5a77a02dd927aa3c52937988a2f7 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 09:41:48 2023 +0300 all: bamboo artifacts commit d26c50960a12c3db62ff54d69d16cd6d3c0d2ee9 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 17:20:20 2023 +0300 all: bamboo artifacts commit 3afc5be520ac2c11196ac6a8b58e112ec140a760 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 17:09:04 2023 +0300 all: bamboo artifacts commit 2ecf440fbff7feb837a4cf650d105e83d2b5efed Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 17:00:22 2023 +0300 all: bamboo artifacts commit 2f1c4a1c712bd900d0b1c86db9c343ccd1b9dfaa Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 16:26:23 2023 +0300 all: bamboo artifacts
2023-08-10 15:02:55 +03:00
'volumes':
'${system.YARN_DIR}': '${bamboo.cacheYarn}'
'key': 'BF'
Pull request: AG-18118-bamboo-artifacts Squashed commit of the following: commit 217790cf2ab0adf3df9f24f1f40c2bc9a310b7ee Merge: c5226c823 418c830e5 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 14:45:59 2023 +0300 Merge remote-tracking branch 'origin/master' into AG-18118-bamboo-artifacts commit c5226c823afba20abb9cc0db028ef232a40171a3 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 12:35:35 2023 +0300 all: bamboo artifacts commit c540cc3a92b8d1cfc48e0c36be0f0e4f1600d9bf Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 12:25:40 2023 +0300 all: bamboo artifacts commit b6aa24b00e2baff16a3aab45eca737391ef9cf90 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 11:07:02 2023 +0300 all: revert bamboo expire conf commit abf46235baf7d7de71cf89d2ae9e14290eaecc39 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 10:55:44 2023 +0300 all: bamboo artifacts commit 77bd6e0aa06cfa4e5364abca4a8e19d2308ee9f0 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 09:49:57 2023 +0300 all: bamboo artifacts commit 37aea65e0c2a5a77a02dd927aa3c52937988a2f7 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 09:41:48 2023 +0300 all: bamboo artifacts commit d26c50960a12c3db62ff54d69d16cd6d3c0d2ee9 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 17:20:20 2023 +0300 all: bamboo artifacts commit 3afc5be520ac2c11196ac6a8b58e112ec140a760 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 17:09:04 2023 +0300 all: bamboo artifacts commit 2ecf440fbff7feb837a4cf650d105e83d2b5efed Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 17:00:22 2023 +0300 all: bamboo artifacts commit 2f1c4a1c712bd900d0b1c86db9c343ccd1b9dfaa Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 16:26:23 2023 +0300 all: bamboo artifacts
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\
VERBOSE=1\
js-deps js-build
'requirements':
- 'adg-docker': 'true'
'Artifact':
'artifact-subscriptions':
- 'artifact': 'AdGuardHome frontend'
Pull request: AG-18118-bamboo-artifacts Squashed commit of the following: commit 217790cf2ab0adf3df9f24f1f40c2bc9a310b7ee Merge: c5226c823 418c830e5 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 14:45:59 2023 +0300 Merge remote-tracking branch 'origin/master' into AG-18118-bamboo-artifacts commit c5226c823afba20abb9cc0db028ef232a40171a3 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 12:35:35 2023 +0300 all: bamboo artifacts commit c540cc3a92b8d1cfc48e0c36be0f0e4f1600d9bf Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 12:25:40 2023 +0300 all: bamboo artifacts commit b6aa24b00e2baff16a3aab45eca737391ef9cf90 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 11:07:02 2023 +0300 all: revert bamboo expire conf commit abf46235baf7d7de71cf89d2ae9e14290eaecc39 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 10:55:44 2023 +0300 all: bamboo artifacts commit 77bd6e0aa06cfa4e5364abca4a8e19d2308ee9f0 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 09:49:57 2023 +0300 all: bamboo artifacts commit 37aea65e0c2a5a77a02dd927aa3c52937988a2f7 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 09:41:48 2023 +0300 all: bamboo artifacts commit d26c50960a12c3db62ff54d69d16cd6d3c0d2ee9 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 17:20:20 2023 +0300 all: bamboo artifacts commit 3afc5be520ac2c11196ac6a8b58e112ec140a760 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 17:09:04 2023 +0300 all: bamboo artifacts commit 2ecf440fbff7feb837a4cf650d105e83d2b5efed Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 17:00:22 2023 +0300 all: bamboo artifacts commit 2f1c4a1c712bd900d0b1c86db9c343ccd1b9dfaa Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 16:26:23 2023 +0300 all: bamboo artifacts
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
'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
Pull request: AG-18118-bamboo-artifacts Squashed commit of the following: commit 217790cf2ab0adf3df9f24f1f40c2bc9a310b7ee Merge: c5226c823 418c830e5 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 14:45:59 2023 +0300 Merge remote-tracking branch 'origin/master' into AG-18118-bamboo-artifacts commit c5226c823afba20abb9cc0db028ef232a40171a3 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 12:35:35 2023 +0300 all: bamboo artifacts commit c540cc3a92b8d1cfc48e0c36be0f0e4f1600d9bf Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 12:25:40 2023 +0300 all: bamboo artifacts commit b6aa24b00e2baff16a3aab45eca737391ef9cf90 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 11:07:02 2023 +0300 all: revert bamboo expire conf commit abf46235baf7d7de71cf89d2ae9e14290eaecc39 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 10:55:44 2023 +0300 all: bamboo artifacts commit 77bd6e0aa06cfa4e5364abca4a8e19d2308ee9f0 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 09:49:57 2023 +0300 all: bamboo artifacts commit 37aea65e0c2a5a77a02dd927aa3c52937988a2f7 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Aug 10 09:41:48 2023 +0300 all: bamboo artifacts commit d26c50960a12c3db62ff54d69d16cd6d3c0d2ee9 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 17:20:20 2023 +0300 all: bamboo artifacts commit 3afc5be520ac2c11196ac6a8b58e112ec140a760 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 17:09:04 2023 +0300 all: bamboo artifacts commit 2ecf440fbff7feb837a4cf650d105e83d2b5efed Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 17:00:22 2023 +0300 all: bamboo artifacts commit 2f1c4a1c712bd900d0b1c86db9c343ccd1b9dfaa Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Wed Aug 9 16:26:23 2023 +0300 all: bamboo artifacts
2023-08-10 15:02:55 +03:00
'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:1.1'
'dockerGo': 'adguard/go-builder:1.21.8--1'
'channel': 'candidate'