From 709b7d00b8d86d58f89a0726ef1078fcd5b854a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Tue, 15 Dec 2020 13:48:27 +0100 Subject: [PATCH] Add minimal builds.sr.ht CI configuration --- .build.yml | 26 ++++++++++++++++++++++++++ README.md | 4 ++++ 2 files changed, 30 insertions(+) create mode 100644 .build.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..99909ea --- /dev/null +++ b/.build.yml @@ -0,0 +1,26 @@ +environment: + MIX_ENV: test +image: fedora/32 +packages: +- elixir +- postgresql-server + +sources: +- https://code.recycled.cloud/e-Durable/management.git +tasks: +- setup: | + echo "postgres" > /tmp/postgres-pw + sudo -u postgres PGSETUP_INITDB_OPTIONS="--encoding UTF8 --pwfile /tmp/postgres-pw" postgresql-setup --initdb + sudo sed -i 's/ident$/md5/' /var/lib/pgsql/data/pg_hba.conf + sudo systemctl start postgresql + cd management + mix local.hex --force + mix local.rebar --force + mix deps.get +- build: | + cd management + mix deps.compile + mix compile +- test: | + cd management + mix test diff --git a/README.md b/README.md index c1326c3..06194ce 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Recycled Cloud Management Interface +[![builds.sr.ht status](https://builds.sr.ht/~fnux.svg?search=recycledcloud-management)](https://builds.sr.ht/~fnux?search=recycledcloud-management) + This repository tracks the initial work for a web interface atop the recycled cloud. It is written in [Elixir](https://elixir-lang.org/), making use of the [Phoenix Web Framework](https://www.phoenixframework.org/). @@ -9,6 +11,8 @@ cloud. It is written in [Elixir](https://elixir-lang.org/), making use of the * The (Phoenix) project has been initialized with the `--no-webpack` and `--no-dashboard` flags to avoid unnecessary clutter. We can add them back later if needed! + * (sourcehut) CI is defined in `.build.yml`. It currently runs on my sr.ht + account since we do not have our own instance (yet). ## Getting Started