aboutsummaryrefslogtreecommitdiff
path: root/.drone.yml
blob: f827928b8d84eec59815c7803c5714eb711ec315 (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
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: rustlang/rust:nightly
    environment:
      CARGO_HOME: /drone/cargo
    commands:
      - 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: rustlang/rust:nightly
    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"
      - cargo test --all-features -- --test-threads 1