34 lines
803 B
YAML
34 lines
803 B
YAML
image: alpine/edge
|
|
packages:
|
|
- elixir
|
|
- postgresql
|
|
- postgresql-contrib
|
|
- docker
|
|
artifacts:
|
|
- management/_build/prod/rel/recycledcloud.tar.gz
|
|
sources:
|
|
- https://code.recycled.cloud/e-Durable/management.git
|
|
tasks:
|
|
- setup: |
|
|
sudo service postgresql setup
|
|
sudo service postgresql start
|
|
sudo service docker start
|
|
cd management
|
|
mix local.hex --force
|
|
mix local.rebar --force
|
|
mix deps.get
|
|
- build: |
|
|
cd management
|
|
MIX_ENV=test mix deps.compile
|
|
MIX_ENV=test mix compile
|
|
- test: |
|
|
cd management
|
|
CALL_CONTAINER_RUNTIME_AS_ROOT=1 LDAP_WAIT_LOOPS=100 MIX_ENV=test mix test
|
|
- release: |
|
|
cd management
|
|
MIX_ENV=prod mix compile
|
|
MIX_ENV=prod mix phx.digest
|
|
MIX_ENV=prod mix release
|
|
cd _build/prod/rel
|
|
tar cvzf recycledcloud.tar.gz recycledcloud/
|