Add minimal builds.sr.ht CI configuration

This commit is contained in:
Timothée Floure 2020-12-15 13:48:27 +01:00
parent 3ff1c12b28
commit 709b7d00b8
Signed by: tfloure
GPG Key ID: 4502C902C00A1E12
2 changed files with 30 additions and 0 deletions

26
.build.yml Normal file
View File

@ -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

View File

@ -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