forgejo/.woodpecker/compliance-and-tests.yml

114 lines
3 KiB
YAML
Raw Normal View History

platform: linux/amd64
workspace:
base: /go
path: src/codeberg/gitea
2022-12-04 22:46:35 +01:00
variables:
- &golang_image 'golang:1.19'
- &gitea_test_env_image 'gitea/test_env:linux-amd64'
pipeline:
2022-12-05 02:21:57 +01:00
dummy:
2022-12-04 22:46:35 +01:00
image: *golang_image
commands:
2022-12-05 02:21:57 +01:00
- exit 0
# deps-backend:
# image: *golang_image
# pull: true
# secrets:
# - goproxy_override
# commands:
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
# - make deps-backend
2022-12-05 02:21:57 +01:00
# security-check:
# image: *golang_image
# pull: true
# secrets:
# - goproxy_override
# commands:
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
# - make security-check
2022-12-04 15:50:37 +01:00
2022-12-05 02:21:57 +01:00
# lint-backend:
# image: *gitea_test_env_image
# pull: true
# secrets:
# - goproxy_override
# environment:
# - TAGS=bindata sqlite sqlite_unlock_notify
# - GOSUMDB=sum.golang.org
# commands:
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
# - make lint-backend
2022-12-04 15:50:37 +01:00
2022-12-05 02:21:57 +01:00
# checks-backend:
# image: *golang_image
# pull: true
# secrets:
# - goproxy_override
# commands:
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
# - make --always-make checks-backend
2022-12-04 23:21:19 +01:00
# fetch-tags:
# image: docker:git
# pull: true
# commands:
# - git config --add safe.directory '*'
# - git fetch --tags --force
2022-12-04 23:21:19 +01:00
# tag-pre-condition:
# image: drone/git
# pull: true
# commands:
# - git update-ref refs/heads/tag_test ${CI_COMMIT_SHA}
2022-12-04 23:21:19 +01:00
# prepare-test-env:
# image: *gitea_test_env_image
# pull: true
# secrets:
# - goproxy_override
# commands:
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
# - ./build/test-env-prepare.sh
2022-12-04 23:21:19 +01:00
# build-test:
# image: *gitea_test_env_image
# pull: true
# secrets:
# - goproxy_override
# environment:
# - GOSUMDB=sum.golang.org
# - 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'
2022-12-04 23:21:19 +01:00
# unit-test:
# image: *gitea_test_env_image
# pull: true
# secrets:
# - github_read_token
# - goproxy_override
# environment:
# - TAGS=bindata sqlite sqlite_unlock_notify
# - RACE_ENABLED=true
# commands:
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
# - su gitea -c 'make unit-test-coverage test-check'
2022-12-04 17:00:08 +01:00
2022-12-04 23:21:19 +01:00
# test-sqlite:
# image: *gitea_test_env_image
# 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'
# when:
# - evaluate: 'not (CI_COMMIT_MESSAGE contains "[SKIP SQLITE TEST]")'