feat: upgrade elixir/erlang runtimes (#35)
Upgrade runtimes to the latest versions: * elixir to 1.15.4 * erlang to 26.0.2 Improve CI definition by using a cache that considers the runtime version. Save disk space by using the `slim` image variant. Co-authored-by: Joao P Dubas <joao.dubas@gmail.com> Reviewed-on: #35
This commit is contained in:
parent
22b3823d8e
commit
2039b43c53
16
.drone.yml
16
.drone.yml
@ -27,7 +27,7 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
archive_format: gzip
|
archive_format: gzip
|
||||||
bucket: trainlog-cache
|
bucket: trainlog-cache
|
||||||
cache_key: '{{ .Repo.Name }}-{{ checksum "mix.lock" }}'
|
cache_key: '{{ .Repo.Name }}-{{ checksum ".tool-versions" }}-{{ checksum "mix.lock" }}'
|
||||||
endpoint: minio:9000
|
endpoint: minio:9000
|
||||||
mount:
|
mount:
|
||||||
- _build
|
- _build
|
||||||
@ -37,7 +37,7 @@ steps:
|
|||||||
restore: true
|
restore: true
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: 'elixir:1.14.5'
|
image: 'elixir:1.15.4-slim'
|
||||||
environment:
|
environment:
|
||||||
MIX_ENV: test
|
MIX_ENV: test
|
||||||
POSTGRES_HOST: db
|
POSTGRES_HOST: db
|
||||||
@ -45,13 +45,17 @@ steps:
|
|||||||
POSTGRES_PASS: postgres
|
POSTGRES_PASS: postgres
|
||||||
commands:
|
commands:
|
||||||
- mix do local.rebar --force, local.hex --force, deps.get, deps.compile
|
- mix do local.rebar --force, local.hex --force, deps.get, deps.compile
|
||||||
- make test
|
- mix compile
|
||||||
|
- mix test --cover --trace --slowest 10
|
||||||
|
|
||||||
- name: lint
|
- name: lint
|
||||||
image: 'elixir:1.14.5'
|
image: 'elixir:1.15.4-slim'
|
||||||
commands:
|
commands:
|
||||||
- mix do local.rebar --force, local.hex --force, deps.get, deps.compile
|
- mix do local.rebar --force, local.hex --force, deps.get, deps.compile
|
||||||
- make static_code_analysis
|
- mix compile
|
||||||
|
- mix format --check-formatted
|
||||||
|
- mix credo suggest --strict --format=flycheck
|
||||||
|
- mix dialyzer --no-check --quiet --ignore-exit-status --format short
|
||||||
|
|
||||||
- name: rebuild cache
|
- name: rebuild cache
|
||||||
image: 'meltwater/drone-cache:v1.4.0'
|
image: 'meltwater/drone-cache:v1.4.0'
|
||||||
@ -63,7 +67,7 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
archive_format: gzip
|
archive_format: gzip
|
||||||
bucket: trainlog-cache
|
bucket: trainlog-cache
|
||||||
cache_key: '{{ .Repo.Name }}-{{ checksum "mix.lock" }}'
|
cache_key: '{{ .Repo.Name }}-{{ checksum ".tool-versions" }}-{{ checksum "mix.lock" }}'
|
||||||
endpoint: minio:9000
|
endpoint: minio:9000
|
||||||
exit_code: true
|
exit_code: true
|
||||||
mount:
|
mount:
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
erlang 24.3.4
|
erlang 26.0.2
|
||||||
elixir 1.15.0
|
elixir 1.15.4
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
---
|
---
|
||||||
version: '3.7'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: 'postgres:15.3-alpine'
|
image: 'postgres:15.3-alpine'
|
||||||
@ -15,7 +13,7 @@ services:
|
|||||||
- 'db_data:/var/lib/postgresql/data'
|
- 'db_data:/var/lib/postgresql/data'
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
app:
|
app:
|
||||||
image: 'elixir:1.14.5'
|
image: 'elixir:1.15.4-slim'
|
||||||
hostname: app
|
hostname: app
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
Loading…
x
Reference in New Issue
Block a user