.gitlab-ci.yml 421 B

123456789101112131415161718192021222324252627
  1. image: 'rust:latest'
  2. stages:
  3. - test
  4. - build
  5. variables:
  6. CARGO_HOME: $CI_PROJECT_DIR/cargo
  7. APT_CACHE_DIR: $CI_PROJECT_DIR/apt
  8. before_script:
  9. - apt-get update -yq
  10. - apt-get install -o dir::cache::archives="$APT_CACHE_DIR" -y libasound2-dev libsdl2-dev
  11. test:
  12. stage: test
  13. script:
  14. - rustc --version
  15. - cargo --version
  16. - cargo test --verbose
  17. cache:
  18. paths:
  19. - apt/
  20. - cargo/
  21. - target/