You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
775 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. ---
  2. kind: pipeline
  3. type: docker
  4. name: test elseware
  5. concurrency:
  6. limit: 1
  7. steps:
  8. - name: build
  9. image: rustlang/rust:nightly
  10. volumes:
  11. - name: cache
  12. path: /usr/local/cargo
  13. - name: target-cache
  14. path: /drone/src/target
  15. commands:
  16. - cargo build
  17. - name: clippy!
  18. image: rustlang/rust:nightly
  19. volumes:
  20. - name: cache
  21. path: /usr/local/cargo
  22. - name: target-cache
  23. path: /drone/src/target
  24. commands:
  25. - cargo clippy -- --deny warnings
  26. - name: test
  27. image: rustlang/rust:nightly
  28. volumes:
  29. - name: cache
  30. path: /usr/local/cargo
  31. - name: target-cache
  32. path: /drone/src/target
  33. commands:
  34. - cargo test --jobs 1
  35. volumes:
  36. - name: cache
  37. host:
  38. path: /home/drone/.cargo
  39. - name: target-cache
  40. host:
  41. path: /home/drone/cargo-cache