re-add tests
parent
af6ce02555
commit
3c9d196803
|
@ -9,105 +9,105 @@ variables:
|
||||||
- &gitea_test_env_image 'gitea/test_env:linux-amd64'
|
- &gitea_test_env_image 'gitea/test_env:linux-amd64'
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
dummy:
|
# dummy:
|
||||||
|
# image: *golang_image
|
||||||
|
# commands:
|
||||||
|
# - exit 0
|
||||||
|
deps-backend:
|
||||||
image: *golang_image
|
image: *golang_image
|
||||||
|
pull: true
|
||||||
|
secrets:
|
||||||
|
- goproxy_override
|
||||||
commands:
|
commands:
|
||||||
- exit 0
|
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
# deps-backend:
|
- make deps-backend
|
||||||
# image: *golang_image
|
|
||||||
# pull: true
|
|
||||||
# secrets:
|
|
||||||
# - goproxy_override
|
|
||||||
# commands:
|
|
||||||
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
|
||||||
# - make deps-backend
|
|
||||||
|
|
||||||
# security-check:
|
security-check:
|
||||||
# image: *golang_image
|
image: *golang_image
|
||||||
# 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 security-check
|
||||||
|
|
||||||
# lint-backend:
|
lint-backend:
|
||||||
# image: *gitea_test_env_image
|
image: *gitea_test_env_image
|
||||||
# pull: true
|
pull: true
|
||||||
# secrets:
|
secrets:
|
||||||
# - goproxy_override
|
- goproxy_override
|
||||||
# environment:
|
environment:
|
||||||
# - TAGS=bindata sqlite sqlite_unlock_notify
|
- TAGS=bindata sqlite sqlite_unlock_notify
|
||||||
# - GOSUMDB=sum.golang.org
|
- GOSUMDB=sum.golang.org
|
||||||
# commands:
|
commands:
|
||||||
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
# - make lint-backend
|
- make lint-backend
|
||||||
|
|
||||||
# checks-backend:
|
checks-backend:
|
||||||
# image: *golang_image
|
image: *golang_image
|
||||||
# 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 --always-make checks-backend
|
- make --always-make checks-backend
|
||||||
|
|
||||||
# fetch-tags:
|
fetch-tags:
|
||||||
# image: docker:git
|
image: docker:git
|
||||||
# pull: true
|
pull: true
|
||||||
# commands:
|
commands:
|
||||||
# - git config --add safe.directory '*'
|
- git config --add safe.directory '*'
|
||||||
# - git fetch --tags --force
|
- git fetch --tags --force
|
||||||
|
|
||||||
# tag-pre-condition:
|
tag-pre-condition:
|
||||||
# image: drone/git
|
image: drone/git
|
||||||
# pull: true
|
pull: true
|
||||||
# commands:
|
commands:
|
||||||
# - git update-ref refs/heads/tag_test ${CI_COMMIT_SHA}
|
- git update-ref refs/heads/tag_test ${CI_COMMIT_SHA}
|
||||||
|
|
||||||
# prepare-test-env:
|
prepare-test-env:
|
||||||
# image: *gitea_test_env_image
|
image: *gitea_test_env_image
|
||||||
# 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}"
|
||||||
# - ./build/test-env-prepare.sh
|
- ./build/test-env-prepare.sh
|
||||||
|
|
||||||
# build-test:
|
build-test:
|
||||||
# image: *gitea_test_env_image
|
image: *gitea_test_env_image
|
||||||
# pull: true
|
pull: true
|
||||||
# secrets:
|
secrets:
|
||||||
# - goproxy_override
|
- goproxy_override
|
||||||
# environment:
|
environment:
|
||||||
# - GOSUMDB=sum.golang.org
|
- GOSUMDB=sum.golang.org
|
||||||
# - TAGS=bindata sqlite sqlite_unlock_notify
|
- TAGS=bindata sqlite sqlite_unlock_notify
|
||||||
# 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 './build/test-env-check.sh'
|
||||||
# - su gitea -c 'make backend'
|
- su gitea -c 'make backend'
|
||||||
|
|
||||||
# unit-test:
|
unit-test:
|
||||||
# image: *gitea_test_env_image
|
image: *gitea_test_env_image
|
||||||
# pull: true
|
pull: true
|
||||||
# secrets:
|
secrets:
|
||||||
# - github_read_token
|
- github_read_token
|
||||||
# - goproxy_override
|
- goproxy_override
|
||||||
# environment:
|
environment:
|
||||||
# - TAGS=bindata sqlite sqlite_unlock_notify
|
- TAGS=bindata sqlite sqlite_unlock_notify
|
||||||
# - RACE_ENABLED=true
|
- RACE_ENABLED=true
|
||||||
# commands:
|
commands:
|
||||||
# - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
- test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}"
|
||||||
# - su gitea -c 'make unit-test-coverage test-check'
|
- su gitea -c 'make unit-test-coverage test-check'
|
||||||
|
|
||||||
# test-sqlite:
|
test-sqlite:
|
||||||
# image: *gitea_test_env_image
|
image: *gitea_test_env_image
|
||||||
# environment:
|
environment:
|
||||||
# - USE_REPO_TEST_DIR=1
|
- USE_REPO_TEST_DIR=1
|
||||||
# - GOPROXY=off
|
- GOPROXY=off
|
||||||
# - TAGS=bindata gogit sqlite sqlite_unlock_notify
|
- TAGS=bindata gogit sqlite sqlite_unlock_notify
|
||||||
# - TEST_TAGS=bindata gogit sqlite sqlite_unlock_notify
|
- TEST_TAGS=bindata gogit sqlite sqlite_unlock_notify
|
||||||
# commands:
|
commands:
|
||||||
# - su gitea -c 'timeout -s ABRT 120m make test-sqlite-migration test-sqlite'
|
- su gitea -c 'timeout -s ABRT 120m make test-sqlite-migration test-sqlite'
|
||||||
# when:
|
when:
|
||||||
# - evaluate: 'not (CI_COMMIT_MESSAGE contains "[SKIP SQLITE TEST]")'
|
- evaluate: 'not (CI_COMMIT_MESSAGE contains "[SKIP SQLITE TEST]")'
|
||||||
|
|
Loading…
Reference in New Issue