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.

56 lines
999 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. environment:
  8. CARGO_INCREMENTAL: false
  9. steps:
  10. - name: clean cache
  11. image: rustlang/rust:nightly
  12. volumes:
  13. - name: cache
  14. path: /usr/local/cargo
  15. - name: target-cache
  16. path: /drone/src/target
  17. commands:
  18. - cargo prune
  19. - name: build
  20. image: rustlang/rust:nightly
  21. volumes:
  22. - name: cache
  23. path: /usr/local/cargo
  24. - name: target-cache
  25. path: /drone/src/target
  26. commands:
  27. - cargo build
  28. - name: clippy!
  29. image: rustlang/rust:nightly
  30. volumes:
  31. - name: cache
  32. path: /usr/local/cargo
  33. - name: target-cache
  34. path: /drone/src/target
  35. commands:
  36. - cargo clippy -- --deny warnings
  37. - name: test
  38. image: rustlang/rust:nightly
  39. volumes:
  40. - name: cache
  41. path: /usr/local/cargo
  42. - name: target-cache
  43. path: /drone/src/target
  44. commands:
  45. - cargo test --jobs 1
  46. volumes:
  47. - name: cache
  48. host:
  49. path: /home/drone/.cargo
  50. - name: target-cache
  51. host:
  52. path: /home/drone/cargo-cache