aboutsummaryrefslogtreecommitdiff
path: root/.circleci/config.yml
blob: 8947236b4c027cfa56ed159c485a01d949f1830c (plain)
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
version: 2.1

jobs:
  test-all:
    docker:
      - image: cimg/rust:1.63.0
    steps:
      - checkout
      - run: cargo --version
      - run: rustup install nightly
      - run: rustup default nightly
      - run:
        name: Run Tests
        command: cargo test --workspace --all-features
  coverage:
    machine: true
    steps:
      - checkout
      - run:
        name: Coverage with docker
        command: |
          docker run \
            --security-opt seccomp=unconfined \
            -v "${PWD}:/volume" \
            xd009642/tarpaulin:0.22.0-nightly \
            cargo \
              +nightly \
              tarpaulin \
              --workspace \
              --all-features \
              --ciserver circle-ci \
              --coveralls $COVERALLS_REPO_TOKEN

workflows:
  test:
    jobs:
      - test-all
      - coverage