.gitlab-ci.yml 640 B

12345678910111213141516171819202122232425262728293031323334353637
  1. image: "rustlang/rust:nightly"
  2. stages:
  3. - build
  4. - test
  5. before_script:
  6. - git submodule update --init --recursive
  7. - rustup target add x86_64-unknown-redox --toolchain nightly
  8. - rustup show # Print version info for debugging
  9. cache:
  10. untracked: true
  11. build:linux:
  12. stage: build
  13. script:
  14. - make all
  15. #build:redox:
  16. # stage: build
  17. # script:
  18. # - make all
  19. test:linux:
  20. stage: test
  21. dependencies:
  22. - build:linux
  23. script:
  24. - make test
  25. fmt:
  26. stage: test
  27. script:
  28. - rustup component add rustfmt-preview
  29. - ./fmt.sh -- --check
  30. allow_failure: true