- make node_modules
- name: lint-frontend
- pull: always
image: node:14
commands:
- make lint-frontend
TAGS: bindata sqlite sqlite_unlock_notify
- name: checks-frontend
- pull: always
image: node:14
commands:
- make checks-frontend
depends_on: [lint-backend]
- name: build-frontend
- pull: always
image: node:14
commands:
- make frontend
depends_on: [checks-backend]
- name: build-backend-arm64
- pull: always
image: golang:1.15
environment:
GO111MODULE: on
depends_on: [checks-backend]
- name: build-backend-386
- pull: always
image: golang:1.15
environment:
GO111MODULE: on
services:
- name: mysql
- pull: default
image: mysql:5.7
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: test
- name: mysql8
- pull: default
image: mysql:8.0
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: testgitea
- name: mssql
- pull: default
image: mcr.microsoft.com/mssql/server:latest
environment:
ACCEPT_EULA: Y
SA_PASSWORD: MwantsaSecurePassword1
- name: ldap
- pull: default
image: gitea/test-openldap:latest
- name: elasticsearch
- pull: default
environment:
discovery.type: single-node
image: elasticsearch:7.5.0
steps:
- name: fetch-tags
- pull: default
image: docker:git
commands:
- git fetch --tags --force
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
- name: unit-test
- pull: always
image: golang:1.15
commands:
- make unit-test-coverage test-check
from_secret: github_read_token
- name: test-mysql
- pull: always
image: golang:1.15
commands:
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
- build
- name: test-mysql8
- pull: always
image: golang:1.15
commands:
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
- build
- name: test-mssql
- pull: always
image: golang:1.15
commands:
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
- build
- name: generate-coverage
- pull: always
image: golang:1.15
commands:
- make coverage
steps:
- name: fetch-tags
- pull: default
image: docker:git
commands:
- git fetch --tags --force
TAGS: bindata sqlite sqlite_unlock_notify
- name: test-sqlite
- pull: always
image: golang:1.15
commands:
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
- build
- name: test-pgsql
- pull: always
image: golang:1.15
commands:
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
steps:
- name: fetch-tags
- pull: default
image: docker:git
commands:
- git fetch --tags --force
- push
- name: release-master
- pull: always
image: plugins/s3:1
settings:
acl: public-read
steps:
- name: fetch-tags
- pull: default
image: docker:git
commands:
- git fetch --tags --force
- pull_request
- name: publish-rootless
- pull: always
image: plugins/docker:linux-amd64
settings:
dockerfile: Dockerfile.rootless
- "refs/tags/**"
steps:
- name: fetch-tags
- pull: default
image: docker:git
commands:
- git fetch --tags --force
- pull_request
- name: publish-rootless
- pull: always
image: plugins/docker:linux-arm64
settings:
dockerfile: Dockerfile.rootless
from_secret: docker_username
- name: manifest
- pull: always
image: plugins/manifest
settings:
auto_tag: true