blob: 7c469a44e28330635d8166462857c5ed89caa0ac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
kind: pipeline
type: docker
name: checks
trigger:
event:
- push
- pull_request
- cron
steps:
- name: Run checks
image: nixpkgs/nix-flakes:nixos-22.05
commands:
- nix develop --command cargo fmt --check
- nix develop --command cargo deny check
- nix develop --command cargo clippy -- -D warnings
---
kind: pipeline
type: docker
name: build
trigger:
event:
- push
- pull_request
- cron
steps:
- name: Run tests and build
image: nixpkgs/nix-flakes:nixos-22.05
commands:
- nix develop --command cargo test
- nix build .
- nix run . -- fcuny.net
- nix run . -- --format long fcuny.net
---
kind: pipeline
type: docker
name: flakes-update
trigger:
event:
- cron
steps:
- name: update flakes
image: nixpkgs/nix-flakes:nixos-22.05
commands:
- nix flake update --commit-lock-file
- nix develop -c git push origin --all
|