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.

53 lines
975 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: clean cache
  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 sweep --maxsize 12GiB
  17. - name: build
  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 build
  26. - name: clippy!
  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 clippy -- --deny warnings
  35. - name: test
  36. image: rustlang/rust:nightly
  37. volumes:
  38. - name: cache
  39. path: /usr/local/cargo
  40. - name: target-cache
  41. path: /drone/src/target
  42. commands:
  43. - cargo test --jobs 1
  44. volumes:
  45. - name: cache
  46. host:
  47. path: /home/drone/.cargo
  48. - name: target-cache
  49. host:
  50. path: /home/drone/cargo-cache