aboutsummaryrefslogblamecommitdiff
path: root/.woodpecker/debug.yaml
blob: 65dab9ab3c3351203b9965db3207bcdff73dd24e (plain) (tree)
1
2
3
4
5
6
7
8






                
          




                                  
                                                              



                                  
                                              
 
                                  
                                  
             





                                                       



                                  
                                              
                                                                                        
                         
when:
  event:
  - push
  - tag
  - pull_request
  - deployment
  - cron
  - manual

steps:
  - name: check formatting
    image: nixpkgs/nix:nixos-22.05
    commands:
      - nix-shell --attr devShell --run "cargo fmt -- --check"

  - name: build
    image: nixpkgs/nix:nixos-22.05
    commands:
      - nix-build -j4 --attr flakePackages.dev

  - name: unit + func tests (lmdb)
    image: nixpkgs/nix:nixos-22.05
    commands:
      - nix-build -j4 --attr flakePackages.tests-lmdb

  - name: unit + func tests (sqlite)
    image: nixpkgs/nix:nixos-22.05
    commands:
      - nix-build -j4 --attr flakePackages.tests-sqlite

  - name: integration tests
    image: nixpkgs/nix:nixos-22.05
    commands:
      - nix-build -j4 --attr flakePackages.dev
      - nix-shell --attr ci --run ./script/test-smoke.sh || (cat /tmp/garage.log; false)
    depends_on: [ build ]