2020-12-15 13:48:27 +01:00
|
|
|
environment:
|
|
|
|
MIX_ENV: test
|
|
|
|
image: fedora/32
|
|
|
|
packages:
|
|
|
|
- elixir
|
|
|
|
- postgresql-server
|
2021-01-07 08:19:31 +01:00
|
|
|
- podman
|
2020-12-15 13:48:27 +01:00
|
|
|
|
|
|
|
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
|
2021-01-07 09:11:15 +01:00
|
|
|
mix test --cover
|