diff options
| author | Mark Felder <feld@feld.me> | 2024-01-20 22:35:08 -0500 | 
|---|---|---|
| committer | Mark Felder <feld@feld.me> | 2024-01-20 22:37:38 -0500 | 
| commit | a0518a4ee171598dddfc6ae9202074cfe13945d5 (patch) | |
| tree | 68a82c0538a9e2538019f4802f7e3336c878bd48 | |
| parent | 1edfce43226923f5ace0f52b6669e96fdae13732 (diff) | |
| download | pleroma-a0518a4ee171598dddfc6ae9202074cfe13945d5.tar.gz pleroma-a0518a4ee171598dddfc6ae9202074cfe13945d5.zip | |
Add a build and test pipeline for elixir 1.15 with a new naming convention
| -rw-r--r-- | .gitlab-ci.yml | 42 | 
1 files changed, 27 insertions, 15 deletions
| diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eb31a8086..1b581d50f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -71,7 +71,7 @@ check-changelog:    tags:      - amd64 -build: +build-1.12.3:    extends:    - .build_changes_policy    - .using-ci-base @@ -79,6 +79,16 @@ build:    script:    - mix compile --force +build-1.15.7-otp-25: +  extends: +  - .build_changes_policy +  - .using-ci-base +  stage: build +  image: elixir:1.15.7-otp-25 +  allow_failure: true +  script: +  - mix compile --force +  spec-build:    extends:    - .using-ci-base @@ -110,20 +120,17 @@ benchmark:      - mix ecto.migrate      - mix pleroma.load_testing -unit-testing: +unit-testing-1.12.3:    extends:    - .build_changes_policy    - .using-ci-base    stage: test    cache: &testing_cache_policy -    <<: *global_cache_policy -    policy: pull - -  services: +  services: &testing_services    - name: postgres:13-alpine      alias: postgres      command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"] -  script: +  script: &testing_script      - mix ecto.create      - mix ecto.migrate      - mix test --cover --preload-modules @@ -134,6 +141,17 @@ unit-testing:          coverage_format: cobertura          path: coverage.xml +unit-testing-1.15.7-otp-25: +  extends: +  - .build_changes_policy +  - .using-ci-base +  stage: test +  image: elixir:1.15.7-otp-25 +  allow_failure: true +  cache: *testing_cache_policy +  services: *testing_services +  script: *testing_script +  unit-testing-erratic:    extends:    - .build_changes_policy @@ -141,14 +159,8 @@ unit-testing-erratic:    stage: test    retry: 2    allow_failure: true -  cache: &testing_cache_policy -    <<: *global_cache_policy -    policy: pull - -  services: -  - name: postgres:13-alpine -    alias: postgres -    command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"] +  cache: *testing_cache_policy +  services: *testing_services    script:      - mix ecto.create      - mix ecto.migrate | 
