aboutsummaryrefslogtreecommitdiff
path: root/.drone.yml
blob: e5f33a1b2a812016fef17bfe5ffabc479ed3a146 (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
51
52
53
54
---
kind: pipeline
name: default

steps:
  - name: style
    image: rust:1.58-buster
    environment:
      CARGO_HOME: /drone/cargo
    volumes:
      - name: cargo
        path: /drone/cargo
    commands:
      - rustup component add rustfmt clippy
      - 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
    volumes:
      - name: cargo
        path: /drone/cargo
    commands:
      - apt-get update
      - apt-get install --yes libsodium-dev
      - cargo install -f cargo-all-features
      - 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
    volumes:
      - name: cargo
        path: /drone/cargo
    commands:
      - apt-get update
      - apt-get install --yes libsodium-dev
      - cargo test --all-features -- --test-threads 1

volumes:
  - name: cargo
    temp: {}
---
kind: signature
hmac: f0d1a9e8d85a22c1d9084b4d90c9930be9700da52284f1875ece996cc52a6ce9

...