diff options
author | silverwind <me@silverwind.io> | 2020-08-16 23:43:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-16 17:43:09 -0400 |
commit | d285b5d35a44bf9fde0682532aeef9550f78cf83 (patch) | |
tree | a9cab79365287a7a11a5ab3c5d4684f90fe75e9c /.drone.yml | |
parent | d1e67d7adefeff79c9aa5128c09eb53bd6e473a9 (diff) | |
download | gitea-d285b5d35a44bf9fde0682532aeef9550f78cf83.tar.gz gitea-d285b5d35a44bf9fde0682532aeef9550f78cf83.zip |
Add 'checks' Make and CI tasks (#12352)
* Add 'checks' Make and CI tasks
Introduce new "checks" targets that perform tasks that we've been piling
onto the linting tasks. This will make the linter tasks faster and
hopefully encourage some users to use them locally.
* add checks to --help
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/.drone.yml b/.drone.yml index 107cbf59ac..fd32ad829c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -34,6 +34,20 @@ steps: GOSUMDB: sum.golang.org TAGS: bindata sqlite sqlite_unlock_notify + - name: checks-frontend + pull: always + image: node:12 + commands: + - make checks-frontend + depends_on: [deps-frontend] + + - name: checks-backend + pull: always + image: golang:1.14 + commands: + - make checks-backend + depends_on: [lint-backend] + - name: build-frontend pull: always image: node:10 # this step is kept at the lowest version of node that we support @@ -49,7 +63,7 @@ steps: GOPROXY: off commands: - go build -mod=vendor -o gitea_no_gcc # test if build succeeds without the sqlite tag - depends_on: [lint-backend] + depends_on: [checks-backend] - name: build-backend-arm64 pull: always @@ -63,7 +77,7 @@ steps: commands: - make backend # test cross compile - rm ./gitea # clean - depends_on: [lint-backend] + depends_on: [checks-backend] - name: build-backend-386 pull: always @@ -75,7 +89,7 @@ steps: GOARCH: 386 commands: - go build -mod=vendor -o gitea_linux_386 # test if compatible with 32 bit - depends_on: [lint-backend] + depends_on: [checks-backend] --- kind: pipeline |