| 1 | version: 2 |
| 2 | workflows: |
| 3 | version: 2 |
| 4 | test: |
| 5 | jobs: |
| 6 | - test-latest |
| 7 | jobs: |
| 8 | test-latest: &test-template |
| 9 | docker: |
| 10 | - image: circleci/rust:latest |
| 11 | steps: |
| 12 | - checkout |
| 13 | - run: |
| 14 | name: Version information |
| 15 | command: rustc --version; cargo --version; rustup --version |
| 16 | - run: |
| 17 | name: Build all targets |
| 18 | command: cargo build --all --all-targets |
| 19 | - run: |
| 20 | name: Run all tests |
| 21 | command: cargo test --all |