@ -207,8 +207,14 @@ steps:
commands:
commands:
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
- name : fix-permissions
image : gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
commands:
- chown -R gitea:gitea .
- name : unit-test
- name : unit-test
image : golang:1.17
image : gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
user : gitea
commands:
commands:
- make unit-test-coverage test-check
- make unit-test-coverage test-check
environment:
environment:
@ -220,7 +226,8 @@ steps:
- name : unit-test-gogit
- name : unit-test-gogit
pull : always
pull : always
image : golang:1.17
image : gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
user : gitea
commands:
commands:
- make unit-test-coverage test-check
- make unit-test-coverage test-check
environment:
environment:
@ -232,6 +239,7 @@ steps:
- name : test-mysql
- name : test-mysql
image : gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
image : gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
user : gitea
commands:
commands:
- make test-mysql-migration integration-test-coverage
- make test-mysql-migration integration-test-coverage
environment:
environment:
@ -246,6 +254,7 @@ steps:
- name : test-mysql8
- name : test-mysql8
image : gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
image : gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
user : gitea
commands:
commands:
- timeout -s ABRT 40m make test-mysql8-migration test-mysql8
- timeout -s ABRT 40m make test-mysql8-migration test-mysql8
environment:
environment:
@ -259,6 +268,7 @@ steps:
- name : test-mssql
- name : test-mssql
image : gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
image : gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
user : gitea
commands:
commands:
- make test-mssql-migration test-mssql
- make test-mssql-migration test-mssql
environment:
environment:
@ -343,9 +353,15 @@ steps:
exclude:
exclude:
- pull_request
- pull_request
- name : fix-permissions
image : gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
commands:
- chown -R gitea:gitea .
- name : build
- name : build
pull : always
pull : always
image : golang:1.17
image : gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
user : gitea
commands:
commands:
- make backend
- make backend
environment:
environment:
@ -355,6 +371,7 @@ steps:
- name : test-sqlite
- name : test-sqlite
image : gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
image : gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
user : gitea
commands:
commands:
- timeout -s ABRT 40m make test-sqlite-migration test-sqlite
- timeout -s ABRT 40m make test-sqlite-migration test-sqlite
environment:
environment:
@ -368,6 +385,7 @@ steps:
- name : test-pgsql
- name : test-pgsql
image : gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
image : gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
user : gitea
commands:
commands:
- timeout -s ABRT 40m make test-pgsql-migration test-pgsql
- timeout -s ABRT 40m make test-pgsql-migration test-pgsql
environment:
environment: