meta/.build.yml
2020-12-15 13:48:27 +01:00

26 lines
618 B
YAML

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