testrun tag
parent
fd310a8b74
commit
8eeee70a40
|
@ -5,99 +5,105 @@ workspace:
|
|||
path: src/codeberg/gitea
|
||||
|
||||
pipeline:
|
||||
deps-backend:
|
||||
dummy:
|
||||
image: golang:1.19
|
||||
pull: true
|
||||
secrets:
|
||||
- goproxy_override
|
||||
commands:
|
||||
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||
- make deps-backend
|
||||
- exit 0
|
||||
|
||||
security-check:
|
||||
image: golang:1.19
|
||||
pull: true
|
||||
secrets:
|
||||
- goproxy_override
|
||||
commands:
|
||||
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||
- make security-check
|
||||
# pipeline:
|
||||
# deps-backend:
|
||||
# image: golang:1.19
|
||||
# pull: true
|
||||
# secrets:
|
||||
# - goproxy_override
|
||||
# commands:
|
||||
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||
# - make deps-backend
|
||||
|
||||
lint-backend:
|
||||
image: gitea/test_env:linux-amd64
|
||||
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
|
||||
# security-check:
|
||||
# image: golang:1.19
|
||||
# pull: true
|
||||
# secrets:
|
||||
# - goproxy_override
|
||||
# commands:
|
||||
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||
# - make security-check
|
||||
|
||||
checks-backend:
|
||||
image: golang:1.19
|
||||
pull: true
|
||||
secrets:
|
||||
- goproxy_override
|
||||
commands:
|
||||
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||
- make --always-make checks-backend
|
||||
# lint-backend:
|
||||
# image: gitea/test_env:linux-amd64
|
||||
# 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
|
||||
|
||||
fetch-tags:
|
||||
image: docker:git
|
||||
pull: true
|
||||
commands:
|
||||
- git config --add safe.directory '*'
|
||||
- git fetch --tags --force
|
||||
# checks-backend:
|
||||
# image: golang:1.19
|
||||
# pull: true
|
||||
# secrets:
|
||||
# - goproxy_override
|
||||
# commands:
|
||||
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||
# - make --always-make checks-backend
|
||||
|
||||
tag-pre-condition:
|
||||
image: drone/git
|
||||
pull: true
|
||||
commands:
|
||||
- git update-ref refs/heads/tag_test ${CI_COMMIT_SHA}
|
||||
# fetch-tags:
|
||||
# image: docker:git
|
||||
# pull: true
|
||||
# commands:
|
||||
# - git config --add safe.directory '*'
|
||||
# - git fetch --tags --force
|
||||
|
||||
prepare-test-env:
|
||||
image: gitea/test_env:linux-amd64
|
||||
pull: true
|
||||
secrets:
|
||||
- goproxy_override
|
||||
commands:
|
||||
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||
- ./build/test-env-prepare.sh
|
||||
# tag-pre-condition:
|
||||
# image: drone/git
|
||||
# pull: true
|
||||
# commands:
|
||||
# - git update-ref refs/heads/tag_test ${CI_COMMIT_SHA}
|
||||
|
||||
build-test:
|
||||
image: gitea/test_env:linux-amd64
|
||||
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'
|
||||
# prepare-test-env:
|
||||
# image: gitea/test_env:linux-amd64
|
||||
# pull: true
|
||||
# secrets:
|
||||
# - goproxy_override
|
||||
# commands:
|
||||
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||
# - ./build/test-env-prepare.sh
|
||||
|
||||
unit-test:
|
||||
image: gitea/test_env:linux-amd64
|
||||
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'
|
||||
# build-test:
|
||||
# image: gitea/test_env:linux-amd64
|
||||
# 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'
|
||||
|
||||
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'
|
||||
# unit-test:
|
||||
# image: gitea/test_env:linux-amd64
|
||||
# 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'
|
||||
|
||||
# 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'
|
||||
|
|
|
@ -19,10 +19,7 @@ pipeline:
|
|||
image: node:18
|
||||
pull: true
|
||||
commands:
|
||||
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||
- make deps-frontend
|
||||
secrets:
|
||||
- goproxy_override
|
||||
|
||||
deps-backend:
|
||||
image: golang:1.19
|
||||
|
@ -41,7 +38,7 @@ pipeline:
|
|||
- export WS_BASE="$(pwd)"
|
||||
- echo "installing nodejs"
|
||||
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get -qqy install nodejs
|
||||
- echo "fetching upx"
|
||||
- echo "fetching upx-v$${UPXVERSION}"
|
||||
- cd /usr/local/bin
|
||||
- curl -sL https://github.com/upx/upx/releases/download/v$${UPXVERSION}/upx-$${UPXVERSION}-amd64_linux.tar.xz | tar --strip-components 1 -xJf - upx-$${UPXVERSION}-amd64_linux/upx
|
||||
- echo "checking upx"
|
||||
|
@ -57,7 +54,7 @@ pipeline:
|
|||
environment:
|
||||
TAGS: bindata sqlite sqlite_unlock_notify
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
UXPVERSION: 4.0.1
|
||||
UPXVERSION: 4.0.1
|
||||
LINUX_ARCHS: 'linux/amd64,linux/arm64'
|
||||
secrets:
|
||||
- goproxy_override
|
||||
|
|
Loading…
Reference in New Issue