Timeout test commands without complicated tricks (#7020)
This commit is contained in:
parent
daaae2aad5
commit
5a722ae812
1 changed files with 8 additions and 12 deletions
20
.drone.yml
20
.drone.yml
|
@ -126,9 +126,8 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
||||||
- apt-get install -y git-lfs
|
- apt-get install -y git-lfs
|
||||||
- (sleep 1200 && (echo 'kill -ABRT $(pidof gitea) $(pidof integrations.sqlite.test)' | sh)) &
|
- timeout -s ABRT 20m make test-sqlite-migration
|
||||||
- make test-sqlite-migration
|
- timeout -s ABRT 20m make test-sqlite
|
||||||
- make test-sqlite
|
|
||||||
when:
|
when:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
|
@ -158,9 +157,8 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
||||||
- apt-get install -y git-lfs
|
- apt-get install -y git-lfs
|
||||||
- (sleep 1200 && (echo 'kill -ABRT $(pidof gitea) $(pidof integrations.test)' | sh)) &
|
- timeout -s ABRT 20m make test-mysql-migration
|
||||||
- make test-mysql-migration
|
- timeout -s ABRT 20m make test-mysql
|
||||||
- make test-mysql
|
|
||||||
when:
|
when:
|
||||||
event: [ tag ]
|
event: [ tag ]
|
||||||
|
|
||||||
|
@ -174,9 +172,8 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
||||||
- apt-get install -y git-lfs
|
- apt-get install -y git-lfs
|
||||||
- (sleep 1200 && (echo 'kill -ABRT $(pidof gitea) $(pidof integrations.test)' | sh)) &
|
- timeout -s ABRT 20m make test-mysql8-migration
|
||||||
- make test-mysql8-migration
|
- timeout -s ABRT 20m make test-mysql8
|
||||||
- make test-mysql8
|
|
||||||
when:
|
when:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
|
@ -190,9 +187,8 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
||||||
- apt-get install -y git-lfs
|
- apt-get install -y git-lfs
|
||||||
- (sleep 1200 && (echo 'kill -ABRT $(pidof gitea) $(pidof integrations.test)' | sh)) &
|
- timeout -s ABRT 20m make test-pgsql-migration
|
||||||
- make test-pgsql-migration
|
- timeout -s ABRT 20m make test-pgsql
|
||||||
- make test-pgsql
|
|
||||||
when:
|
when:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue