.gitlab-ci.yml 984 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. image: "redoxos/redoxer:latest"
  2. stages:
  3. - build
  4. - test
  5. before_script:
  6. - apt-get update -qq
  7. - apt-get install -qq git
  8. - git submodule update --init --recursive
  9. cache:
  10. paths:
  11. - target/
  12. build:linux:
  13. stage: build
  14. script:
  15. - rustup toolchain add "$(cat rust-toolchain)"
  16. - rustup show # Print version info for debugging
  17. - make -j "$(nproc)" all
  18. build:redox:
  19. stage: build
  20. variables:
  21. TARGET: x86_64-unknown-redox
  22. script:
  23. - export RUSTUP_TOOLCHAIN="$HOME/.redoxer/toolchain"
  24. - export PATH="$RUSTUP_TOOLCHAIN/bin:$PATH"
  25. - rustup show # Print version info for debugging
  26. - make -j "$(nproc)" all
  27. test:linux:
  28. stage: test
  29. dependencies:
  30. - build:linux
  31. script:
  32. - make test
  33. - cd tests && make verify
  34. fmt:
  35. stage: test
  36. script:
  37. - rustup component add rustfmt-preview
  38. - ./fmt.sh -- --check
  39. allow_failure: true