summaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorMura Li <typeless@users.noreply.github.com>2018-10-29 09:54:13 +0800
committertechknowlogick <hello@techknowlogick.com>2018-10-28 21:54:13 -0400
commit7694c99ab343af5aaaf690232377bc439911e1a3 (patch)
treedcbb9dde785f0bafd05a0bbb73f280c5a5ec34d0 /.drone.yml
parentabf6e0d90b3e9d0bb11d995ecaebfdc47e7e09dc (diff)
downloadgitea-7694c99ab343af5aaaf690232377bc439911e1a3.tar.gz
gitea-7694c99ab343af5aaaf690232377bc439911e1a3.zip
Kill testing processes if the test takes too long (#5174)
When timeout, Send ABRT signal to print backtraces for diagnosis. The timeout value is set to 1200s (20mins) for now.
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml27
1 files changed, 15 insertions, 12 deletions
diff --git a/.drone.yml b/.drone.yml
index 08a376ab1c..1a770ef4b6 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -117,18 +117,19 @@ pipeline:
when:
event: [ tag ]
- # test-sqlite:
- # image: golang:1.11
- # pull: true
- # group: test
- # environment:
- # TAGS: bindata
- # commands:
- # - curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
- # - apt-get install -y git-lfs
- # - make test-sqlite
- # when:
- # event: [ push, tag, pull_request ]
+ test-sqlite:
+ image: golang:1.11
+ pull: true
+ group: test
+ environment:
+ TAGS: bindata
+ commands:
+ - curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
+ - apt-get install -y git-lfs
+ - (sleep 1200 && (echo 'kill -ABRT $(pidof gitea) $(pidof integrations.sqlite.test)' | sh)) &
+ - make test-sqlite
+ when:
+ event: [ push, tag, pull_request ]
test-mysql:
image: golang:1.11
@@ -155,6 +156,7 @@ pipeline:
commands:
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
- apt-get install -y git-lfs
+ - (sleep 1200 && (echo 'kill -ABRT $(pidof gitea) $(pidof integrations.test)' | sh)) &
- make test-mysql
when:
event: [ tag ]
@@ -169,6 +171,7 @@ pipeline:
commands:
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
- apt-get install -y git-lfs
+ - (sleep 1200 && (echo 'kill -ABRT $(pidof gitea) $(pidof integrations.test)' | sh)) &
- make test-pgsql
when:
event: [ push, tag, pull_request ]