ocaml: Add binding for returning NBDKIT_API_VERSION of OCaml plugins
[nbdkit.git] / .cirrus.yml
blob4afb230b576be056f90475705b7d21233c7d6936
1 rust_test_task:
2   matrix:
3     - name: rust-1.46.0
4       container:
5         image: rust:1.46.0
6       env:
7         RUSTFLAGS: -Dwarnings
8         RUSTDOCFLAGS: -Dwarnings
9     - name: rust-stable
10       container:
11         image: rust:latest
12       env:
13         RUSTFLAGS: -Dwarnings
14         RUSTDOCFLAGS: -Dwarnings
15     - name: rust-nightly
16       container:
17         image: rustlang/rust:nightly
18       env:
19         CARGO_ARGS: --all-features
20         RUSTFLAGS: -Dwarnings
21         RUSTDOCFLAGS: -Dwarnings
22   cargo_cache:
23     folder: $CARGO_HOME/registry
24   build_script:
25     - cd plugins/rust; cargo build $CARGO_ARGS
26   test_script:
27     - cd plugins/rust; cargo test $CARGO_ARGS
28   example_script:
29     - cd plugins/rust; cargo build $CARGO_ARGS --examples
30   doc_script:
31     - cd plugins/rust; cargo doc $CARGO_ARGS --no-deps
32   before_cache_script: rm -rf $CARGO_HOME/registry/index
34 minver_task:
35   name: minver
36   depends_on:
37     - rust-1.46.0
38     - rust-stable
39     - rust-nightly
40     - rust-clippy
41   container:
42     image: rustlang/rust:nightly
43   env:
44     RUSTFLAGS: -Dwarnings
45     RUSTDOCFLAGS: -Dwarnings
46   cargo_cache:
47     folder: $CARGO_HOME/registry
48   test_script:
49     - cd plugins/rust
50     - cargo update -Zminimal-versions
51     - cargo test --all-features
52   before_cache_script: rm -rf $CARGO_HOME/registry/index
54 rust_clippy_task:
55   name: rust-clippy
56   matrix:
57     - container:
58         image: rustlang/rust:nightly
59   cargo_cache:
60     folder: $CARGO_HOME/registry
61   lint_script:
62     - rustup component add clippy
63     - cd plugins/rust
64     - cargo clippy --all-features --all-targets -- -D warnings
65   before_cache_script: rm -rf $CARGO_HOME/registry/index