chore: try timeouts in drone tasks
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
adea380d86
commit
a40b430ed0
1 changed files with 26 additions and 22 deletions
48
.drone.yml
48
.drone.yml
|
|
@ -37,24 +37,25 @@ steps:
|
||||||
- name: lint
|
- name: lint
|
||||||
image: docker.io/library/elixir:1.18.3-otp-27
|
image: docker.io/library/elixir:1.18.3-otp-27
|
||||||
commands:
|
commands:
|
||||||
|
- set -euo pipefail
|
||||||
# Install hex package manager
|
# Install hex package manager
|
||||||
- mix local.hex --force
|
- timeout --signal=KILL 3m mix local.hex --force
|
||||||
# Fetch dependencies
|
# Fetch dependencies
|
||||||
- mix deps.get
|
- timeout --signal=KILL 10m mix deps.get
|
||||||
# Check for compilation errors & warnings
|
# Check for compilation errors & warnings
|
||||||
- mix compile --warnings-as-errors
|
- timeout --signal=KILL 10m mix compile --warnings-as-errors
|
||||||
# Check formatting
|
# Check formatting
|
||||||
- mix format --check-formatted
|
- timeout --signal=KILL 3m mix format --check-formatted
|
||||||
# Security checks
|
# Security checks
|
||||||
- mix sobelow --config
|
- timeout --signal=KILL 10m mix sobelow --config
|
||||||
# Check dependencies for known vulnerabilities
|
# Check dependencies for known vulnerabilities
|
||||||
- mix deps.audit
|
- timeout --signal=KILL 10m mix deps.audit
|
||||||
# Check for dependencies that are not maintained anymore
|
# Check for dependencies that are not maintained anymore
|
||||||
- mix hex.audit
|
- timeout --signal=KILL 10m mix hex.audit
|
||||||
# Provide hints for improving code quality
|
# Provide hints for improving code quality
|
||||||
- mix credo
|
- timeout --signal=KILL 15m mix credo
|
||||||
# Check that translations are up to date
|
# Check that translations are up to date
|
||||||
- mix gettext.extract --check-up-to-date
|
- timeout --signal=KILL 5m mix gettext.extract --check-up-to-date
|
||||||
|
|
||||||
- name: wait_for_postgres
|
- name: wait_for_postgres
|
||||||
image: docker.io/library/postgres:18.1
|
image: docker.io/library/postgres:18.1
|
||||||
|
|
@ -79,12 +80,13 @@ steps:
|
||||||
TEST_POSTGRES_HOST: postgres
|
TEST_POSTGRES_HOST: postgres
|
||||||
TEST_POSTGRES_PORT: 5432
|
TEST_POSTGRES_PORT: 5432
|
||||||
commands:
|
commands:
|
||||||
|
- set -euo pipefail
|
||||||
# Install hex package manager
|
# Install hex package manager
|
||||||
- mix local.hex --force
|
- mix local.hex --force
|
||||||
# Fetch dependencies
|
# Fetch dependencies
|
||||||
- mix deps.get
|
- timeout --signal=KILL 10m mix deps.get
|
||||||
# Run fast tests (excludes slow/performance and UI tests)
|
# Run fast tests (excludes slow/performance and UI tests)
|
||||||
- mix test --exclude slow --exclude ui
|
- timeout --signal=KILL 20m mix test --exclude slow --exclude ui
|
||||||
|
|
||||||
- name: rebuild-cache
|
- name: rebuild-cache
|
||||||
image: drillster/drone-volume-cache
|
image: drillster/drone-volume-cache
|
||||||
|
|
@ -144,24 +146,25 @@ steps:
|
||||||
- name: lint
|
- name: lint
|
||||||
image: docker.io/library/elixir:1.18.3-otp-27
|
image: docker.io/library/elixir:1.18.3-otp-27
|
||||||
commands:
|
commands:
|
||||||
|
- set -euo pipefail
|
||||||
# Install hex package manager
|
# Install hex package manager
|
||||||
- mix local.hex --force
|
- timeout --signal=KILL 3m mix local.hex --force
|
||||||
# Fetch dependencies
|
# Fetch dependencies
|
||||||
- mix deps.get
|
- timeout --signal=KILL 10m mix deps.get
|
||||||
# Check for compilation errors & warnings
|
# Check for compilation errors & warnings
|
||||||
- mix compile --warnings-as-errors
|
- timeout --signal=KILL 10m mix compile --warnings-as-errors
|
||||||
# Check formatting
|
# Check formatting
|
||||||
- mix format --check-formatted
|
- timeout --signal=KILL 3m mix format --check-formatted
|
||||||
# Security checks
|
# Security checks
|
||||||
- mix sobelow --config
|
- timeout --signal=KILL 10m mix sobelow --config
|
||||||
# Check dependencies for known vulnerabilities
|
# Check dependencies for known vulnerabilities
|
||||||
- mix deps.audit
|
- timeout --signal=KILL 10m mix deps.audit
|
||||||
# Check for dependencies that are not maintained anymore
|
# Check for dependencies that are not maintained anymore
|
||||||
- mix hex.audit
|
- timeout --signal=KILL 10m mix hex.audit
|
||||||
# Provide hints for improving code quality
|
# Provide hints for improving code quality
|
||||||
- mix credo
|
- timeout --signal=KILL 15m mix credo
|
||||||
# Check that translations are up to date
|
# Check that translations are up to date
|
||||||
- mix gettext.extract --check-up-to-date
|
- timeout --signal=KILL 5m mix gettext.extract --check-up-to-date
|
||||||
|
|
||||||
- name: wait_for_postgres
|
- name: wait_for_postgres
|
||||||
image: docker.io/library/postgres:18.1
|
image: docker.io/library/postgres:18.1
|
||||||
|
|
@ -186,12 +189,13 @@ steps:
|
||||||
TEST_POSTGRES_HOST: postgres
|
TEST_POSTGRES_HOST: postgres
|
||||||
TEST_POSTGRES_PORT: 5432
|
TEST_POSTGRES_PORT: 5432
|
||||||
commands:
|
commands:
|
||||||
|
- set -euo pipefail
|
||||||
# Install hex package manager
|
# Install hex package manager
|
||||||
- mix local.hex --force
|
- mix local.hex --force
|
||||||
# Fetch dependencies
|
# Fetch dependencies
|
||||||
- mix deps.get
|
- timeout --signal=KILL 10m mix deps.get
|
||||||
# Run all tests (including slow/performance and UI tests)
|
# Run all tests (including slow/performance and UI tests)
|
||||||
- mix test
|
- timeout --signal=KILL 30m mix test
|
||||||
|
|
||||||
- name: rebuild-cache
|
- name: rebuild-cache
|
||||||
image: drillster/drone-volume-cache
|
image: drillster/drone-volume-cache
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue