diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0e77fd1 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,104 @@ +name: Test + +on: [pull_request] + +jobs: + Test: + runs-on: ubuntu-latest + name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} + strategy: + matrix: + elixir: + - 1.15 + - 1.14 + - 1.13 + otp: + - 26.1 + - 25.3 + - 24.3 + steps: + - uses: actions/checkout@v4 + - name: Set up Elixir + uses: erlef/setup-beam@v1 + with: + elixir-version: ${{ matrix.elixir }} + otp-version: ${{ matrix.otp }} + version-type: strict + - name: Restore dependencies cache + uses: actions/cache@v3 + with: + path: deps + key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} + restore-keys: ${{ runner.os }}-mix- + - name: Install Dependencies + env: + MIX_ENV: test + run: | + mix local.rebar --force + mix local.hex --force + mix deps.get + - name: Run Tests + run: mix test --trace + + TestRuntime: + runs-on: ubuntu-latest + name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} + strategy: + matrix: + elixir: + - 1.15 + - 1.14 + - 1.13 + otp: + - 26.1 + - 25.3 + - 24.3 + steps: + - uses: actions/checkout@v4 + - name: Set up Elixir + uses: erlef/setup-beam@v1 + with: + elixir-version: ${{ matrix.elixir }} + otp-version: ${{ matrix.otp }} + version-type: strict + - name: Restore dependencies cache + uses: actions/cache@v3 + with: + path: deps + key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} + restore-keys: ${{ runner.os }}-mix- + - name: Install Dependencies + env: + MIX_ENV: test + run: | + mix local.rebar --force + mix local.hex --force + mix deps.get + - name: Run Tests + env: + STATIX_TEST_RUNTIME_CONFIG: true + run: mix test --trace + + Linting: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Elixir + uses: erlef/setup-beam@v1 + with: + elixir-version: '1.13' + otp-version: '24.3' + version-type: strict + - name: Restore dependencies cache + uses: actions/cache@v3 + with: + path: deps + key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} + restore-keys: ${{ runner.os }}-mix- + - name: Install Dependencies + run: | + mix local.rebar --force + mix local.hex --force + mix deps.get + - name: Check Format + run: mix format --check-formatted diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5fdc741..0000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -language: elixir - -branches: - only: - - master - -jobs: - include: - - stage: check formatted - script: mix format --check-formatted - otp_release: 20.3 - elixir: 1.7 - - stage: test - script: mix test - otp_release: 18.3 - elixir: 1.3 - - otp_release: 19.3 - elixir: 1.4 - - otp_release: 20.3 - elixir: 1.5 - - otp_release: 20.3 - elixir: 1.6 - env: STATIX_TEST_RUNTIME_CONFIG=false - - otp_release: 20.3 - elixir: 1.6 - env: STATIX_TEST_RUNTIME_CONFIG=true - - otp_release: 21.0 - elixir: 1.7 diff --git a/CHANGELOG.md b/CHANGELOG.md index 01f78c9..998dd36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## v1.5.0 + +* Add support for OTP 26 and Elixir 1.15. * Fixed prefix building when connect options provided. ## v1.4.0 diff --git a/README.md b/README.md index fbdf345..a3d1210 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,12 @@ # Statix -[![Build Status](https://travis-ci.com/lexmag/statix.svg?branch=master)](https://travis-ci.com/lexmag/statix) -[![Hex Version](https://img.shields.io/hexpm/v/statix.svg "Hex Version")](https://hex.pm/packages/statix) +[![Hex Version](https://img.shields.io/hexpm/v/statix.svg "Hex Version")](https://hex.pm/packages/cabify_statix) + +## Disclaimer + +This is a fork of [Statix](https://github.com/lexmag/statix) intended to be a temporal handover while the owner is not available. See this [issue for more info](https://github.com/lexmag/statix/pull/72#issuecomment-1805879985). + +___ Statix is an Elixir client for StatsD-compatible servers. It is focused on speed without sacrificing simplicity, completeness, or correctness. @@ -34,7 +39,7 @@ What makes Statix the fastest library around: -See [the documentation](https://hexdocs.pm/statix) for detailed usage information. +See [the documentation](https://hexdocs.pm/cabify_statix) for detailed usage information. ## Installation @@ -42,7 +47,7 @@ Add Statix as a dependency to your `mix.exs` file: ```elixir defp deps() do - [{:statix, ">= 0.0.0"}] + [{:cabify_statix, "~> 1.5"}] end ``` diff --git a/mix.exs b/mix.exs index 890f817..fceea82 100644 --- a/mix.exs +++ b/mix.exs @@ -1,8 +1,8 @@ defmodule Statix.Mixfile do use Mix.Project - @version "1.4.0" - @source_url "https://github.com/lexmag/statix" + @version "1.5.0" + @source_url "https://github.com/cabify/statix" def project() do [ @@ -31,9 +31,10 @@ defmodule Statix.Mixfile do defp package() do [ - maintainers: ["Aleksei Magusev", "Andrea Leopardi"], + maintainers: ["Cabify"], licenses: ["ISC"], - links: %{"GitHub" => @source_url} + links: %{"GitHub" => @source_url}, + name: :cabify_statix ] end