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.

61 lines
1.1 KiB

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. environment:
  18. CARGO_INCREMENTAL: false
  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. environment:
  29. CARGO_INCREMENTAL: false
  30. - name: clippy!
  31. image: rustlang/rust:nightly
  32. volumes:
  33. - name: cache
  34. path: /usr/local/cargo
  35. - name: target-cache
  36. path: /drone/src/target
  37. commands:
  38. - cargo clippy -- --deny warnings
  39. environment:
  40. CARGO_INCREMENTAL: false
  41. - name: test
  42. image: rustlang/rust:nightly
  43. volumes:
  44. - name: cache
  45. path: /usr/local/cargo
  46. - name: target-cache
  47. path: /drone/src/target
  48. commands:
  49. - cargo test --jobs 1
  50. environment:
  51. CARGO_INCREMENTAL: false
  52. volumes:
  53. - name: cache
  54. host:
  55. path: /home/drone/.cargo
  56. - name: target-cache
  57. host:
  58. path: /home/drone/cargo-cache