.gitlab-ci.yml 1016 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. image: "redoxos/redoxer:latest"
  2. variables:
  3. GIT_SUBMODULE_STRATEGY: recursive
  4. stages:
  5. - build
  6. - test
  7. default:
  8. cache:
  9. paths:
  10. - target/
  11. build:linux:
  12. stage: build
  13. script:
  14. - rustup show # Ensure correct toolchain is downloaded and installed
  15. - make -j "$(nproc)" all
  16. build:redox:
  17. stage: build
  18. variables:
  19. TARGET: x86_64-unknown-redox
  20. script:
  21. - ./redoxer.sh -j "$(nproc)" all
  22. test:linux:
  23. stage: test
  24. needs:
  25. - build:linux
  26. dependencies:
  27. - build:linux
  28. script:
  29. - make test
  30. #TODO: fix redoxer exec hangs
  31. # test:redox:
  32. # stage: test
  33. # needs:
  34. # - build:redox
  35. # dependencies:
  36. # - build:redox
  37. # variables:
  38. # TARGET: x86_64-unknown-redox
  39. # script:
  40. # - ./redoxer.sh test
  41. # # TODO: Out of memory
  42. # allow_failure: true
  43. fmt:
  44. stage: test
  45. needs: []
  46. script:
  47. - rustup component add rustfmt-preview
  48. - ./fmt.sh -- --check