aboutsummaryrefslogblamecommitdiff
path: root/.drone.yml
blob: e7a19d3b654da8f1312dae781b6298e73bb71f13 (plain) (tree)
1
2
3
4
5
6
7
8
9


              





               
      







                                     
               
                           
                

                              
                                           




                                                                       

               
                           

                              


                                           
                                           

                                
                                      
                                                        

              
                           





                                           
                                                     
kind: pipeline
name: default

workspace:
  base: /drone

clone:
  disable: true

steps:
  - name: clone
    image: alpine/git
    commands:
      - mkdir -p cargo
      - git clone $DRONE_GIT_HTTP_URL
      - cd netapp
      - git checkout $DRONE_COMMIT

  - name: style
    image: rust:1.58-buster
    environment:
      CARGO_HOME: /drone/cargo
    commands:
      - rustup component add rustfmt clippy
      - cd netapp
      - cargo fmt -- --check
      - cargo clippy --all-features -- --deny warnings
      - cargo clippy --example fullmesh -- --deny warnings
      - cargo clippy --example basalt --all-features -- --deny warnings

  - name: build
    image: rust:1.58-buster
    environment:
      CARGO_HOME: /drone/cargo
    commands:
      - apt-get update
      - apt-get install --yes libsodium-dev
      - cargo install -f cargo-all-features
      - cd netapp
      - cargo build-all-features
      - cargo build --example fullmesh
      - cargo build --example basalt --features "basalt"

  - name: test
    image: rust:1.58-buster
    environment:
      CARGO_HOME: /drone/cargo
    commands:
      - apt-get update
      - apt-get install --yes libsodium-dev
      - cd netapp
      - cargo test --all-features -- --test-threads 1