Revamp CI: rebase on alpine, generate release
This commit is contained in:
parent
c003b82736
commit
1a9fe301d0
1 changed files with 16 additions and 15 deletions
31
.build.yml
31
.build.yml
|
@ -1,30 +1,31 @@
|
|||
environment:
|
||||
MIX_ENV: test
|
||||
image: fedora/32
|
||||
image: alpine/edge
|
||||
packages:
|
||||
- elixir
|
||||
- postgresql-server
|
||||
- postgresql
|
||||
- postgresql-contrib
|
||||
- podman
|
||||
- erlang-eldap
|
||||
|
||||
- docker
|
||||
artifacts:
|
||||
- management/_build/prod/rel.tar.gz
|
||||
sources:
|
||||
- https://code.recycled.cloud/e-Durable/management.git
|
||||
tasks:
|
||||
- setup: |
|
||||
sudo localectl set-locale en_GB.UTF-8
|
||||
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
|
||||
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 deps.compile
|
||||
mix compile
|
||||
MIX_ENV=test mix deps.compile
|
||||
MIX_ENV=test mix compile
|
||||
- test: |
|
||||
cd management
|
||||
mix test --cover
|
||||
CALL_CONTAINER_RUNTIME_AS_ROOT=1 LDAP_WAIT_LOOPS=100 MIX_ENV=test mix test
|
||||
- release: |
|
||||
cd management
|
||||
MIX_ENV=prod mix release
|
||||
cd _build/prod
|
||||
tar cvzf rel.tar.gz rel/
|
||||
|
|
Loading…
Reference in a new issue