ex_trainer/.drone.yml
renovate-bot ea530b4775 chore(deps): update elixir docker tag to v1.14.0 (#21)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| elixir | docker | minor | `1.13.4` -> `1.14.0` |
| elixir |  | minor | `1.13.4` -> `1.14.0` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xNzkuMCIsInVwZGF0ZWRJblZlciI6IjMyLjE3OS4wIn0=-->

Reviewed-on: #21
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-02-27 01:23:50 +00:00

82 lines
1.8 KiB
YAML

---
kind: pipeline
type: docker
name: test
trigger:
event:
- pull_request
steps:
- name: database healthcheck
image: 'postgres:14.5-alpine'
environment:
PGUSER: postgres
PGPASSWORD: postgres
PGHOST: db
commands:
- while ! pg_isready; do sleep 1; done
- name: restore cache
image: 'meltwater/drone-cache:v1.3.0'
environment:
AWS_ACCESS_KEY_ID:
from_secret: minio_user
AWS_SECRET_ACCESS_KEY:
from_secret: minio_password
settings:
archive_format: gzip
bucket: trainlog-cache
cache_key: '{{ .Repo.Name }}-{{ checksum "mix.lock" }}'
endpoint: minio:9000
mount:
- _build
- deps
path_style: true
region: us-east-1
restore: true
- name: test
image: 'elixir:1.14.0'
environment:
MIX_ENV: test
POSTGRES_HOST: db
POSTGRES_USER: postgres
POSTGRES_PASS: postgres
commands:
- mix do local.rebar --force, local.hex --force, deps.get, deps.compile
- make test
- name: lint
image: 'elixir:1.14.0'
commands:
- mix do local.rebar --force, local.hex --force, deps.get, deps.compile
- make static_code_analysis
- name: rebuild cache
image: 'meltwater/drone-cache:v1.3.0'
environment:
AWS_ACCESS_KEY_ID:
from_secret: minio_user
AWS_SECRET_ACCESS_KEY:
from_secret: minio_password
settings:
archive_format: gzip
bucket: trainlog-cache
cache_key: '{{ .Repo.Name }}-{{ checksum "mix.lock" }}'
endpoint: minio:9000
exit_code: true
mount:
- _build
- deps
path_style: true
rebuild: true
region: us-east-1
services:
- name: db
image: 'postgres:14.5-alpine'
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres