diff --git a/.woodpecker/compliance-and-tests.yml b/.woodpecker/compliance-and-tests.yml index a5619270fc..b58e937627 100644 --- a/.woodpecker/compliance-and-tests.yml +++ b/.woodpecker/compliance-and-tests.yml @@ -48,62 +48,62 @@ pipeline: - test "$${GOPROXY_OVERRIDE-}" != "" && export GOPROXY="$${GOPROXY_OVERRIDE}" - make --always-make checks-backend - fetch-tags: - image: docker:git - pull: true - commands: - - git config --add safe.directory '*' - - git fetch --tags --force + # fetch-tags: + # image: docker:git + # pull: true + # commands: + # - git config --add safe.directory '*' + # - git fetch --tags --force - tag-pre-condition: - image: drone/git - pull: true - commands: - - git update-ref refs/heads/tag_test ${CI_COMMIT_SHA} + # tag-pre-condition: + # image: drone/git + # pull: true + # commands: + # - git update-ref refs/heads/tag_test ${CI_COMMIT_SHA} - 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 + # 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 - 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' + # 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' - 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' + # 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' - 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]")' + # 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]")' diff --git a/Dockerfile.ci b/Dockerfile.ci index 6ea21a49b5..71613426b9 100644 --- a/Dockerfile.ci +++ b/Dockerfile.ci @@ -18,9 +18,8 @@ COPY docker/root /root-prep COPY docker/bin /bin-prep RUN chmod 755 /root-prep/usr/bin/entrypoint /root-prep/etc/s6/gitea/* /root-prep/etc/s6/openssh/* /root-prep/etc/s6/.s6-svscan/* && \ - find /bin-prep -name 'forgejo' -type f | xargs -I{} chmod 0755 {} && \ - find /bin-prep -name 'environment-to-ini' -type f | xargs -I{} chmod 0755 {} - + find /bin-prep -name 'forgejo' -type f | xargs -I{} /bin/chmod 0755 {} && \ + find /bin-prep -name 'environment-to-ini' -type f | xargs -I{} /bin/chmod 0755 {} FROM alpine:3.17.0 LABEL maintainer="contact@forgejo.org"