v0.2.1
A ready-to-use CI/CD Pipeline for Elixir projects.
Attributes
Includes Deno configuration
Repository
Current version released
3 years ago
Elixir Pipeline
A ready-to-use GitLab CI Pipeline and Jobs for your Elixir projects.
🚀 Usage
Quick start:
import { GitLab } from "https://deno.land/x/elixir_pipeline/mod.ts";
const { pipeline } = GitLab;
pipeline.write(); // Write the pipeline to the file .gitlab-ci.ymlOr, if you want to use the predefined jobs:
import { GitlabCI } from "https://deno.land/x/fluent_gitlab_ci/mod.ts";
import { GitLab } from "https://deno.land/x/elixir_pipeline/mod.ts";
const { test } = GitLab;
const const pipeline = new GitlabCI()
.image("elixir:latest")
.addJob("test", test);
pipeline.write(); // Write the pipeline to the file .gitlab-ci.ymlIt will generate the following .gitlab-ci.yml file:
# Do not edit this file directly. It is generated by Fluent GitLab CI
image: elixir:latest
before_script:
- mix local.rebar --force
- mix local.hex --force
- mix deps.get
test:
script:
- mix test🧪 Advanced Usage
This package also provides a ready-to-use pipeline for Dagger, just run the following command on your Elixir project:
dagger run deno run -A https://deno.land/x/elixir_pipeline/ci.tsOr, if you want to use the predefined jobs:
import Client, { connect } from "@dagger.io/dagger";
import { Dagger } from "https://deno.land/x/elixir_pipeline/mod.ts";
const { test } = Dagger;
function pipeline(src = ".") {
connect(async (client: Client) => {
await test(client, src);
});
}
pipeline();