testrun tag
parent
fd310a8b74
commit
8eeee70a40
|
@ -5,99 +5,105 @@ workspace:
|
||||||
path: src/codeberg/gitea
|
path: src/codeberg/gitea
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
deps-backend:
|
dummy:
|
||||||
image: golang:1.19
|
image: golang:1.19
|
||||||
pull: true
|
|
||||||
secrets:
|
|
||||||
- goproxy_override
|
|
||||||
commands:
|
commands:
|
||||||
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
- exit 0
|
||||||
- make deps-backend
|
|
||||||
|
|
||||||
security-check:
|
# pipeline:
|
||||||
image: golang:1.19
|
# deps-backend:
|
||||||
pull: true
|
# image: golang:1.19
|
||||||
secrets:
|
# pull: true
|
||||||
- goproxy_override
|
# secrets:
|
||||||
commands:
|
# - goproxy_override
|
||||||
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
# commands:
|
||||||
- make security-check
|
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
|
# - make deps-backend
|
||||||
|
|
||||||
lint-backend:
|
# security-check:
|
||||||
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 security-check
|
||||||
commands:
|
|
||||||
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
|
||||||
- make lint-backend
|
|
||||||
|
|
||||||
checks-backend:
|
# 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 --always-make checks-backend
|
# - GOSUMDB=sum.golang.org
|
||||||
|
# commands:
|
||||||
|
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
|
# - make lint-backend
|
||||||
|
|
||||||
fetch-tags:
|
# checks-backend:
|
||||||
image: docker:git
|
# image: golang:1.19
|
||||||
pull: true
|
# pull: true
|
||||||
commands:
|
# secrets:
|
||||||
- git config --add safe.directory '*'
|
# - goproxy_override
|
||||||
- git fetch --tags --force
|
# commands:
|
||||||
|
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
|
# - make --always-make checks-backend
|
||||||
|
|
||||||
tag-pre-condition:
|
# fetch-tags:
|
||||||
image: drone/git
|
# image: docker:git
|
||||||
pull: true
|
# pull: true
|
||||||
commands:
|
# commands:
|
||||||
- git update-ref refs/heads/tag_test ${CI_COMMIT_SHA}
|
# - git config --add safe.directory '*'
|
||||||
|
# - git fetch --tags --force
|
||||||
|
|
||||||
prepare-test-env:
|
# tag-pre-condition:
|
||||||
image: gitea/test_env:linux-amd64
|
# image: drone/git
|
||||||
pull: true
|
# pull: true
|
||||||
secrets:
|
# commands:
|
||||||
- goproxy_override
|
# - git update-ref refs/heads/tag_test ${CI_COMMIT_SHA}
|
||||||
commands:
|
|
||||||
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
|
||||||
- ./build/test-env-prepare.sh
|
|
||||||
|
|
||||||
build-test:
|
# prepare-test-env:
|
||||||
image: gitea/test_env:linux-amd64
|
# image: gitea/test_env:linux-amd64
|
||||||
pull: true
|
# pull: true
|
||||||
secrets:
|
# secrets:
|
||||||
- goproxy_override
|
# - goproxy_override
|
||||||
environment:
|
# commands:
|
||||||
- GOSUMDB=sum.golang.org
|
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
- TAGS=bindata sqlite sqlite_unlock_notify
|
# - ./build/test-env-prepare.sh
|
||||||
commands:
|
|
||||||
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
|
||||||
- su gitea -c './build/test-env-check.sh'
|
|
||||||
- su gitea -c 'make backend'
|
|
||||||
|
|
||||||
unit-test:
|
# build-test:
|
||||||
image: gitea/test_env:linux-amd64
|
# image: gitea/test_env:linux-amd64
|
||||||
pull: true
|
# pull: true
|
||||||
secrets:
|
# secrets:
|
||||||
- github_read_token
|
# - goproxy_override
|
||||||
- goproxy_override
|
# environment:
|
||||||
environment:
|
# - GOSUMDB=sum.golang.org
|
||||||
- TAGS=bindata sqlite sqlite_unlock_notify
|
# - TAGS=bindata sqlite sqlite_unlock_notify
|
||||||
- RACE_ENABLED=true
|
# commands:
|
||||||
commands:
|
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
# - su gitea -c './build/test-env-check.sh'
|
||||||
- su gitea -c 'make unit-test-coverage test-check'
|
# - su gitea -c 'make backend'
|
||||||
|
|
||||||
test-sqlite:
|
# unit-test:
|
||||||
image: gitea/test_env:linux-amd64
|
# image: gitea/test_env:linux-amd64
|
||||||
environment:
|
# pull: true
|
||||||
- USE_REPO_TEST_DIR=1
|
# secrets:
|
||||||
- GOPROXY=off
|
# - github_read_token
|
||||||
- TAGS=bindata gogit sqlite sqlite_unlock_notify
|
# - goproxy_override
|
||||||
- TEST_TAGS=bindata gogit sqlite sqlite_unlock_notify
|
# environment:
|
||||||
commands:
|
# - TAGS=bindata sqlite sqlite_unlock_notify
|
||||||
- su gitea -c 'timeout -s ABRT 120m make test-sqlite-migration test-sqlite'
|
# - 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
|
image: node:18
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
|
||||||
- make deps-frontend
|
- make deps-frontend
|
||||||
secrets:
|
|
||||||
- goproxy_override
|
|
||||||
|
|
||||||
deps-backend:
|
deps-backend:
|
||||||
image: golang:1.19
|
image: golang:1.19
|
||||||
|
@ -41,7 +38,7 @@ pipeline:
|
||||||
- export WS_BASE="$(pwd)"
|
- export WS_BASE="$(pwd)"
|
||||||
- echo "installing nodejs"
|
- echo "installing nodejs"
|
||||||
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get -qqy install 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
|
- 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
|
- 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"
|
- echo "checking upx"
|
||||||
|
@ -57,7 +54,7 @@ pipeline:
|
||||||
environment:
|
environment:
|
||||||
TAGS: bindata sqlite sqlite_unlock_notify
|
TAGS: bindata sqlite sqlite_unlock_notify
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
UXPVERSION: 4.0.1
|
UPXVERSION: 4.0.1
|
||||||
LINUX_ARCHS: 'linux/amd64,linux/arm64'
|
LINUX_ARCHS: 'linux/amd64,linux/arm64'
|
||||||
secrets:
|
secrets:
|
||||||
- goproxy_override
|
- goproxy_override
|
||||||
|
|
Loading…
Reference in New Issue