.gitlab-ci.yml 892 B

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