.gitlab-ci.yml 908 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # xxx unused, out of date
  2. image: ubuntu:18.04
  3. stages:
  4. - pre-build
  5. - build
  6. - deploy
  7. - test
  8. .linux_set_path: &linux_set_path_def
  9. before_script:
  10. - export PATH=$(pwd)/bin${PATH:+:$PATH}
  11. tags:
  12. - linux
  13. .windows_set_path: &win_set_path_def
  14. before_script:
  15. - set PATH=%CD%\bin;%PATH%
  16. tags:
  17. - windows
  18. build-windows:
  19. stage: build
  20. script:
  21. - ci\build.bat
  22. artifacts:
  23. paths:
  24. - bin\nim.exe
  25. - bin\nimd.exe
  26. - compiler\nim.exe
  27. - koch.exe
  28. expire_in: 1 week
  29. tags:
  30. - windows
  31. deploy-windows:
  32. stage: deploy
  33. script:
  34. - koch.exe winrelease
  35. artifacts:
  36. paths:
  37. - build/*.exe
  38. - build/*.zip
  39. expire_in: 1 week
  40. tags:
  41. - windows
  42. - fast
  43. test-windows:
  44. stage: test
  45. <<: *win_set_path_def
  46. script:
  47. - call ci\deps.bat
  48. - nim c testament\tester
  49. - testament\tester.exe all
  50. tags:
  51. - windows
  52. - fast