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:
|
image: alpine/edge
|
||||||
MIX_ENV: test
|
|
||||||
image: fedora/32
|
|
||||||
packages:
|
packages:
|
||||||
- elixir
|
- elixir
|
||||||
- postgresql-server
|
- postgresql
|
||||||
- postgresql-contrib
|
- postgresql-contrib
|
||||||
- podman
|
- docker
|
||||||
- erlang-eldap
|
artifacts:
|
||||||
|
- management/_build/prod/rel.tar.gz
|
||||||
sources:
|
sources:
|
||||||
- https://code.recycled.cloud/e-Durable/management.git
|
- https://code.recycled.cloud/e-Durable/management.git
|
||||||
tasks:
|
tasks:
|
||||||
- setup: |
|
- setup: |
|
||||||
sudo localectl set-locale en_GB.UTF-8
|
sudo service postgresql setup
|
||||||
echo "postgres" > /tmp/postgres-pw
|
sudo service postgresql start
|
||||||
sudo -u postgres PGSETUP_INITDB_OPTIONS="--encoding UTF8 --pwfile /tmp/postgres-pw" postgresql-setup --initdb
|
sudo service docker start
|
||||||
sudo sed -i 's/ident$/md5/' /var/lib/pgsql/data/pg_hba.conf
|
|
||||||
sudo systemctl start postgresql
|
|
||||||
cd management
|
cd management
|
||||||
mix local.hex --force
|
mix local.hex --force
|
||||||
mix local.rebar --force
|
mix local.rebar --force
|
||||||
mix deps.get
|
mix deps.get
|
||||||
- build: |
|
- build: |
|
||||||
cd management
|
cd management
|
||||||
mix deps.compile
|
MIX_ENV=test mix deps.compile
|
||||||
mix compile
|
MIX_ENV=test mix compile
|
||||||
- test: |
|
- test: |
|
||||||
cd management
|
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