Compare commits
3 Commits
a4b6c6d09c
...
97b260e340
Author | SHA1 | Date | |
---|---|---|---|
97b260e340 | |||
39fd238ed8 | |||
2fa1a773f2 |
18
.drone.yml
18
.drone.yml
@ -11,11 +11,13 @@ steps:
|
||||
- name: database healthcheck
|
||||
image: &postgres 'postgres:16.3-alpine'
|
||||
environment:
|
||||
PGUSER: postgres
|
||||
PGPASSWORD: postgres
|
||||
PGHOST: db
|
||||
PGUSER: &db_user postgres
|
||||
PGPASSWORD: &db_pass postgres
|
||||
PGHOST: &db_host db
|
||||
commands:
|
||||
- while ! pg_isready; do sleep 1; done
|
||||
depends_on:
|
||||
- 'db'
|
||||
|
||||
- name: restore cache
|
||||
image: &drone_cache 'meltwater/drone-cache:v1.4.0'
|
||||
@ -42,21 +44,23 @@ steps:
|
||||
path: /drone/src/deps
|
||||
|
||||
- name: dependencies and compile
|
||||
image: &elixir 'hexpm/elixir:1.17.2-erlang-27.0-debian-bookworm-20240701-slim'
|
||||
image: &elixir 'hexpm/elixir:1.17.2-erlang-27.0.1-debian-bookworm-20240701-slim'
|
||||
commands:
|
||||
- apt-get update
|
||||
- apt-get install -y git make
|
||||
- mix do local.rebar --force, local.hex --force, deps.get, deps.compile
|
||||
- mix compile --force --all-warnings --warnings-as-errors
|
||||
volumes: *volumes
|
||||
depends_on:
|
||||
- 'restore cache'
|
||||
|
||||
- name: test
|
||||
image: *elixir
|
||||
environment:
|
||||
MIX_ENV: test
|
||||
POSTGRES_HOST: &db_host db
|
||||
POSTGRES_USER: &db_user postgres
|
||||
POSTGRES_PASS: &db_pass postgres
|
||||
POSTGRES_HOST: *db_host
|
||||
POSTGRES_USER: *db_user
|
||||
POSTGRES_PASS: *db_pass
|
||||
commands:
|
||||
- apt-get update
|
||||
- apt-get install -y git make
|
||||
|
@ -1,2 +1,2 @@
|
||||
erlang 27.0
|
||||
erlang 27.0.1
|
||||
elixir 1.17.2
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM hexpm/elixir:1.17.2-erlang-27.0-debian-bookworm-20240701-slim AS builder
|
||||
FROM hexpm/elixir:1.17.2-erlang-27.0.1-debian-bookworm-20240701-slim AS builder
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get -y install git make
|
||||
|
5
mix.exs
5
mix.exs
@ -29,10 +29,7 @@ defmodule Wabanex.MixProject do
|
||||
|
||||
defp deps do
|
||||
[
|
||||
{:absinthe,
|
||||
git: "https://github.com/absinthe-graphql/absinthe.git",
|
||||
ref: "358e273a26f3ce7660cd88bf0f6daf4fa51e1689",
|
||||
override: true},
|
||||
{:absinthe, "~> 1.7.0"},
|
||||
{:absinthe_plug,
|
||||
git: "https://github.com/absinthe-graphql/absinthe_plug.git",
|
||||
ref: "3a984cc341ebb32c79e7ae58b4ebd116d5c62f9e"},
|
||||
|
2
mix.lock
2
mix.lock
@ -1,5 +1,5 @@
|
||||
%{
|
||||
"absinthe": {:git, "https://github.com/absinthe-graphql/absinthe.git", "358e273a26f3ce7660cd88bf0f6daf4fa51e1689", [ref: "358e273a26f3ce7660cd88bf0f6daf4fa51e1689"]},
|
||||
"absinthe": {:hex, :absinthe, "1.7.7", "ecbf4e9b21372dda271c79bb43dded3583b4f080348c5e68d9b5445e790ff17e", [:mix], [{:dataloader, "~> 1.0.0 or ~> 2.0", [hex: :dataloader, repo: "hexpm", optional: true]}, {:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}, {:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}, {:opentelemetry_process_propagator, "~> 0.2.1 or ~> 0.3", [hex: :opentelemetry_process_propagator, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "2145519828bcb7c8621b72d7af2bcff88b01cba2774583c40ebd867e1d336ff6"},
|
||||
"absinthe_plug": {:git, "https://github.com/absinthe-graphql/absinthe_plug.git", "3a984cc341ebb32c79e7ae58b4ebd116d5c62f9e", [ref: "3a984cc341ebb32c79e7ae58b4ebd116d5c62f9e"]},
|
||||
"bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"},
|
||||
"castore": {:hex, :castore, "1.0.8", "dedcf20ea746694647f883590b82d9e96014057aff1d44d03ec90f36a5c0dc6e", [:mix], [], "hexpm", "0b2b66d2ee742cb1d9cb8c8be3b43c3a70ee8651f37b75a8b982e036752983f1"},
|
||||
|
Loading…
x
Reference in New Issue
Block a user