meta/.build.yml

38 lines
887 B
YAML
Raw Normal View History

image: alpine/edge
packages:
- elixir
- postgresql
- postgresql-contrib
- docker
artifacts:
- meta/_build/prod/rel/meta.tar.gz
sources:
- https://code.recycled.cloud/RecycledCloud/met.git
tasks:
- setup: |
sudo service postgresql setup
sudo service postgresql start
sudo service docker start
cd meta
mix local.hex --force
mix local.rebar --force
mix deps.get
- build: |
cd meta
MIX_ENV=test mix deps.compile
MIX_ENV=test mix compile
- test: |
cd meta
sudo docker pull code.ungleich.ch:5050/fnux/e-durable-oci-images/openldap-playground:latest
CALL_CONTAINER_RUNTIME_AS_ROOT=1 LDAP_WAIT_LOOPS=100 MIX_ENV=test mix test
2021-02-08 15:26:00 +01:00
- lint: |
cd meta
2021-02-08 15:26:00 +01:00
MIX_ENV=test mix credo
- release: |
cd meta
MIX_ENV=prod mix compile
MIX_ENV=prod mix phx.digest
MIX_ENV=prod mix release
2021-01-18 09:45:07 +01:00
cd _build/prod/rel
tar cvzf meta.tar.gz met/