full run prep
This commit is contained in:
parent
8eeee70a40
commit
a6ef321c9a
1 changed files with 85 additions and 91 deletions
|
@ -5,105 +5,99 @@ workspace:
|
||||||
path: src/codeberg/gitea
|
path: src/codeberg/gitea
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
dummy:
|
deps-backend:
|
||||||
image: golang:1.19
|
image: golang:1.19
|
||||||
|
pull: true
|
||||||
|
secrets:
|
||||||
|
- goproxy_override
|
||||||
commands:
|
commands:
|
||||||
- exit 0
|
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
|
- make deps-backend
|
||||||
|
|
||||||
# pipeline:
|
security-check:
|
||||||
# deps-backend:
|
image: golang:1.19
|
||||||
# image: golang:1.19
|
pull: true
|
||||||
# pull: true
|
secrets:
|
||||||
# secrets:
|
- goproxy_override
|
||||||
# - goproxy_override
|
commands:
|
||||||
# commands:
|
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
- make security-check
|
||||||
# - make deps-backend
|
|
||||||
|
|
||||||
# security-check:
|
lint-backend:
|
||||||
# image: golang:1.19
|
image: gitea/test_env:linux-amd64
|
||||||
# pull: true
|
pull: true
|
||||||
# secrets:
|
secrets:
|
||||||
# - goproxy_override
|
- goproxy_override
|
||||||
# commands:
|
environment:
|
||||||
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
- TAGS=bindata sqlite sqlite_unlock_notify
|
||||||
# - make security-check
|
- GOSUMDB=sum.golang.org
|
||||||
|
commands:
|
||||||
|
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
|
- make lint-backend
|
||||||
|
|
||||||
# lint-backend:
|
checks-backend:
|
||||||
# image: gitea/test_env:linux-amd64
|
image: golang:1.19
|
||||||
# pull: true
|
pull: true
|
||||||
# secrets:
|
secrets:
|
||||||
# - goproxy_override
|
- goproxy_override
|
||||||
# environment:
|
commands:
|
||||||
# - TAGS=bindata sqlite sqlite_unlock_notify
|
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
# - GOSUMDB=sum.golang.org
|
- make --always-make checks-backend
|
||||||
# commands:
|
|
||||||
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
|
||||||
# - make lint-backend
|
|
||||||
|
|
||||||
# checks-backend:
|
fetch-tags:
|
||||||
# image: golang:1.19
|
image: docker:git
|
||||||
# pull: true
|
pull: true
|
||||||
# secrets:
|
commands:
|
||||||
# - goproxy_override
|
- git config --add safe.directory '*'
|
||||||
# commands:
|
- git fetch --tags --force
|
||||||
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
|
||||||
# - make --always-make checks-backend
|
|
||||||
|
|
||||||
# fetch-tags:
|
tag-pre-condition:
|
||||||
# image: docker:git
|
image: drone/git
|
||||||
# pull: true
|
pull: true
|
||||||
# commands:
|
commands:
|
||||||
# - git config --add safe.directory '*'
|
- git update-ref refs/heads/tag_test ${CI_COMMIT_SHA}
|
||||||
# - git fetch --tags --force
|
|
||||||
|
|
||||||
# tag-pre-condition:
|
prepare-test-env:
|
||||||
# image: drone/git
|
image: gitea/test_env:linux-amd64
|
||||||
# pull: true
|
pull: true
|
||||||
# commands:
|
secrets:
|
||||||
# - git update-ref refs/heads/tag_test ${CI_COMMIT_SHA}
|
- goproxy_override
|
||||||
|
commands:
|
||||||
|
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
|
- ./build/test-env-prepare.sh
|
||||||
|
|
||||||
# prepare-test-env:
|
build-test:
|
||||||
# image: gitea/test_env:linux-amd64
|
image: gitea/test_env:linux-amd64
|
||||||
# pull: true
|
pull: true
|
||||||
# secrets:
|
secrets:
|
||||||
# - goproxy_override
|
- goproxy_override
|
||||||
# commands:
|
environment:
|
||||||
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
- GOSUMDB=sum.golang.org
|
||||||
# - ./build/test-env-prepare.sh
|
- TAGS=bindata sqlite sqlite_unlock_notify
|
||||||
|
commands:
|
||||||
|
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
|
- su gitea -c './build/test-env-check.sh'
|
||||||
|
- su gitea -c 'make backend'
|
||||||
|
|
||||||
# build-test:
|
unit-test:
|
||||||
# image: gitea/test_env:linux-amd64
|
image: gitea/test_env:linux-amd64
|
||||||
# pull: true
|
pull: true
|
||||||
# secrets:
|
secrets:
|
||||||
# - goproxy_override
|
- github_read_token
|
||||||
# environment:
|
- goproxy_override
|
||||||
# - GOSUMDB=sum.golang.org
|
environment:
|
||||||
# - TAGS=bindata sqlite sqlite_unlock_notify
|
- TAGS=bindata sqlite sqlite_unlock_notify
|
||||||
# commands:
|
- RACE_ENABLED=true
|
||||||
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
commands:
|
||||||
# - su gitea -c './build/test-env-check.sh'
|
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
# - su gitea -c 'make backend'
|
- su gitea -c 'make unit-test-coverage test-check'
|
||||||
|
|
||||||
# unit-test:
|
test-sqlite:
|
||||||
# image: gitea/test_env:linux-amd64
|
image: gitea/test_env:linux-amd64
|
||||||
# pull: true
|
environment:
|
||||||
# secrets:
|
- USE_REPO_TEST_DIR=1
|
||||||
# - github_read_token
|
- GOPROXY=off
|
||||||
# - goproxy_override
|
- TAGS=bindata gogit sqlite sqlite_unlock_notify
|
||||||
# environment:
|
- TEST_TAGS=bindata gogit sqlite sqlite_unlock_notify
|
||||||
# - TAGS=bindata sqlite sqlite_unlock_notify
|
commands:
|
||||||
# - RACE_ENABLED=true
|
- su gitea -c 'timeout -s ABRT 120m make test-sqlite-migration test-sqlite'
|
||||||
# commands:
|
|
||||||
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
|
||||||
# - su gitea -c 'make unit-test-coverage test-check'
|
|
||||||
|
|
||||||
# test-sqlite:
|
|
||||||
# image: gitea/test_env:linux-amd64
|
|
||||||
# environment:
|
|
||||||
# - USE_REPO_TEST_DIR=1
|
|
||||||
# - GOPROXY=off
|
|
||||||
# - TAGS=bindata gogit sqlite sqlite_unlock_notify
|
|
||||||
# - TEST_TAGS=bindata gogit sqlite sqlite_unlock_notify
|
|
||||||
# commands:
|
|
||||||
# - su gitea -c 'timeout -s ABRT 120m make test-sqlite-migration test-sqlite'
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue