Files

127 lines
2.8 KiB
YAML
Raw Permalink Normal View History

2021-07-15 15:37:54 +02:00
---
kind: pipeline
name: coopcloud.tech/abra
steps:
- name: make check
2026-08-19 20:01:03 +00:00
image: golang:1.27
commands:
- make check
- name: xgettext-go
2026-08-19 20:01:03 +00:00
image: golang:1.27
2026-06-14 18:37:34 +02:00
environment:
GOPRIVATE: coopcloud.tech
commands:
- go run git.coopcloud.tech/toolshed/xgettext-go@latest
-o pkg/i18n/locales/abra.pot
--keyword=i18n.G
--keyword-ctx=i18n.GC
--sort-output
--add-comments-tag="translators"
$(find . -name "*.go" -not -path "*vendor*" | sort)
depends_on:
- make check
2025-10-01 12:20:16 +02:00
when:
event:
exclude:
- tag
- name: xgettext-go status
2026-04-01 11:19:53 +02:00
image: golang:1.26-alpine3.22
commands:
- apk add patchutils git make
- cd /drone/src
2025-08-27 13:01:40 -04:00
- sed -i "s/charset=CHARSET/charset=UTF-8/g" pkg/i18n/locales/*.pot
- git diff pkg/i18n/locales/abra.pot | grepdiff --output-matching=hunk POT-Creation-Date | git apply --reverse --allow-empty
- git diff
- git diff-files --exit-code
depends_on:
- xgettext-go
2025-10-01 12:20:16 +02:00
when:
event:
exclude:
- tag
- name: make test
2026-08-19 20:01:03 +00:00
image: golang:1.27
2024-07-07 12:03:43 +02:00
environment:
2026-03-29 19:57:19 +02:00
ABRA_DIR: /root/.abra_test
commands:
- make test
2023-02-08 11:13:20 +01:00
depends_on:
- make check
2023-10-10 07:27:49 +02:00
- name: publish image
image: plugins/docker
settings:
auto_tag: true
2025-01-04 11:09:14 +01:00
username: abra-bot
2023-10-10 07:27:49 +02:00
password:
from_secret: git_coopcloud_tech_token_abra_bot
2025-01-03 20:23:27 +01:00
repo: git.coopcloud.tech/toolshed/abra
2023-10-10 07:27:49 +02:00
tags: dev
registry: git.coopcloud.tech
when:
2024-07-07 12:21:51 +02:00
branch:
- main
2023-10-10 07:27:49 +02:00
depends_on:
- make check
2024-06-28 05:47:55 +02:00
- make test
2025-03-16 12:57:48 +01:00
- name: on-demand integration test
image: appleboy/drone-ssh
settings:
host:
- int.coopcloud.tech
username: abra
key:
from_secret: abra_int_private_key
port: 22
command_timeout: 60m
script_stop: true
request_pty: true
script:
- |
wget https://git.coopcloud.tech/toolshed/abra/raw/branch/main/scripts/tests/run-ci-int -O run-ci-int
chmod +x run-ci-int
sh run-ci-int
when:
ref:
- refs/heads/int-*
depends_on:
- make check
- make test
- name: nightly integration test
image: appleboy/drone-ssh
settings:
host:
- int.coopcloud.tech
username: abra
key:
from_secret: abra_int_private_key
port: 22
command_timeout: 60m
script_stop: true
request_pty: true
script:
- |
2025-01-03 20:23:27 +01:00
wget https://git.coopcloud.tech/toolshed/abra/raw/branch/main/scripts/tests/run-ci-int -O run-ci-int
2024-07-03 10:02:04 +02:00
chmod +x run-ci-int
sh run-ci-int
when:
event:
- cron:
cron:
# @daily https://docs.drone.io/cron/
- integration
volumes:
- name: deps
temp: {}
2025-03-16 12:57:48 +01:00
trigger:
action:
exclude:
- synchronized