Add Drone CI
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Alex 2022-12-01 17:05:32 +01:00
parent 0ae7f5fbd9
commit ee18ddcebc
Signed by: lx
GPG Key ID: 0E496D15096376BE
3 changed files with 55 additions and 10 deletions

38
.drone.yml Normal file
View File

@ -0,0 +1,38 @@
---
kind: pipeline
name: default
node:
nix-daemon: 1
steps:
- name: check formatting
image: nixpkgs/nix:nixos-22.05
commands:
- nix-shell -p cargo --run "cargo fmt -- --check"
- name: build
image: nixpkgs/nix:nixos-22.05
commands:
- nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#debug.x86_64-linux.tricot
- name: test
image: nixpkgs/nix:nixos-22.05
commands:
- nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#test.x86_64-linux.tricot
- ./result-bin/bin/tricot-*
trigger:
event:
- custom
- push
- pull_request
- tag
- cron
---
kind: signature
hmac: c99528a32d4c9f5016e6143e08291c99a8b248880f7dc3ee3550803e16cd28ad
...

View File

@ -1,5 +1,7 @@
# Tricot # Tricot
[![Build Status](https://drone.deuxfleurs.fr/api/badges/Deuxfleurs/tricot/status.svg)](https://drone.deuxfleurs.fr/Deuxfleurs/tricot)
Tricot is a reverse-proxy for exposing your services via TLS that integrates well with Consul and Nomad. Tricot is a reverse-proxy for exposing your services via TLS that integrates well with Consul and Nomad.
Tricot does the following things: Tricot does the following things:

View File

@ -15,17 +15,22 @@
overlays = [ cargo2nix.overlays.default ]; overlays = [ cargo2nix.overlays.default ];
}; };
packageFun = import ./Cargo.nix; packageFun = import ./Cargo.nix;
packageSet = pkgs.rustBuilder.makePackageSet { rustVersion = "1.63.0";
inherit packageFun;
release = true; compile = args: compileMode:
rustVersion = "1.63.0"; let
}; packageSet = pkgs.rustBuilder.makePackageSet ({
tricot = packageSet.workspace.tricot { inherit packageFun rustVersion;
compileMode = "build"; } // args);
}; in
packageSet.workspace.tricot {
inherit compileMode;
};
in in
{ {
packages.x86_64-linux.tricot = tricot; test.x86_64-linux.tricot = compile { release = false; } "test";
packages.x86_64-linux.default = tricot; debug.x86_64-linux.tricot = compile { release = false; } "build";
packages.x86_64-linux.tricot = compile { release = true; } "build";
packages.x86_64-linux.default = self.packages.x86_64-linux.tricot;
}; };
} }