mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-17 18:49:15 +00:00
98cb255d12
OTP builds to 1.15
Changelog entry
Ensure policies are fully loaded
Fix :warn
use main branch for linkify
Fix warn in tests
Migrations for phoenix 1.17
Revert "Migrations for phoenix 1.17"
This reverts commit 6a3b2f15b7
.
Oban upgrade
Add default empty whitelist
mix format
limit test to amd64
OTP 26 tests for 1.15
use OTP_VERSION tag
baka
just 1.15
Massive deps update
Update locale, deps
Mix format
shell????
multiline???
?
max cases 1
use assert_recieve
don't put_env in async tests
don't async conn/fs tests
mix format
FIx some uploader issues
Fix tests
119 lines
2.6 KiB
YAML
119 lines
2.6 KiB
YAML
platform: linux/amd64
|
|
|
|
matrix:
|
|
ELIXIR_VERSION:
|
|
- 1.14
|
|
- 1.15
|
|
OTP_VERSION:
|
|
- 25
|
|
- 26
|
|
include:
|
|
- ELIXIR_VERSION: 1.14
|
|
OTP_VERSION: 25
|
|
- ELIXIR_VERSION: 1.15
|
|
OTP_VERSION: 25
|
|
# Soon
|
|
#- ELIXIR_VERSION: 1.15
|
|
# OTP_VERSION: 26
|
|
|
|
variables:
|
|
- &scw-secrets
|
|
- SCW_ACCESS_KEY
|
|
- SCW_SECRET_KEY
|
|
- SCW_DEFAULT_ORGANIZATION_ID
|
|
- &setup-hex "mix local.hex --force && mix local.rebar --force"
|
|
- &on-release
|
|
when:
|
|
event:
|
|
- push
|
|
- tag
|
|
branch:
|
|
- develop
|
|
- stable
|
|
- refs/tags/v*
|
|
- refs/tags/stable-*
|
|
- &on-stable
|
|
when:
|
|
event:
|
|
- push
|
|
- tag
|
|
branch:
|
|
- stable
|
|
- refs/tags/stable-*
|
|
- &on-point-release
|
|
when:
|
|
event:
|
|
- push
|
|
branch:
|
|
- develop
|
|
- stable
|
|
- &on-pr-open
|
|
when:
|
|
event:
|
|
- pull_request
|
|
|
|
- &tag-build "export BUILD_TAG=$${CI_COMMIT_TAG:-\"$CI_COMMIT_BRANCH\"} && export PLEROMA_BUILD_BRANCH=$BUILD_TAG"
|
|
|
|
- &clean "(rm -rf release || true) && (rm -rf _build || true) && (rm -rf /root/.mix)"
|
|
- &mix-clean "mix deps.clean --all && mix clean"
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:15
|
|
when:
|
|
event:
|
|
- pull_request
|
|
environment:
|
|
POSTGRES_DB: pleroma_test_${ELIXIR_VERSION}_${OTP_VERSION}
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
pipeline:
|
|
lint:
|
|
<<: *on-pr-open
|
|
image: akkoma/ci-base:1.15
|
|
commands:
|
|
- mix local.hex --force
|
|
- mix local.rebar --force
|
|
- mix format --check-formatted
|
|
|
|
build:
|
|
image: akkoma/ci-base:${ELIXIR_VERSION}-otp${OTP_VERSION}
|
|
<<: *on-pr-open
|
|
environment:
|
|
MIX_ENV: test
|
|
POSTGRES_DB: pleroma_test_${ELIXIR_VERSION}_${OTP_VERSION}
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
DB_HOST: postgres
|
|
commands:
|
|
- mix local.hex --force
|
|
- mix local.rebar --force
|
|
- mix deps.get
|
|
- mix compile
|
|
|
|
test:
|
|
image: akkoma/ci-base:${ELIXIR_VERSION}-otp${OTP_VERSION}
|
|
<<: *on-pr-open
|
|
environment:
|
|
MIX_ENV: test
|
|
POSTGRES_DB: pleroma_test_${ELIXIR_VERSION}_${OTP_VERSION}
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
DB_HOST: postgres
|
|
commands:
|
|
- mix local.hex --force
|
|
- mix local.rebar --force
|
|
- mix deps.get
|
|
- mix compile
|
|
- mix ecto.drop -f -q
|
|
- mix ecto.create
|
|
- mix ecto.migrate
|
|
- mkdir -p test/tmp
|
|
- |
|
|
for i in $(seq 1 10)
|
|
do
|
|
echo "PARTITION $i"
|
|
MIX_TEST_PARTITION=$i mix test --preload-modules --exclude erratic --exclude federated --partitions 10 --max-cases 1
|
|
done
|