.gitlab-ci.yml 976 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. variables:
  2. CI_SERVER_URL: http://git.bilibili.co
  3. # CI_DEBUG_TRACE: "true"
  4. stages:
  5. - COMPILE
  6. - LINT
  7. - TEST
  8. compile part:
  9. stage: COMPILE
  10. script:
  11. - bash .rider/make_update.sh
  12. - bazel info
  13. - pwd
  14. - bash .rider/bazel_build.sh "part"
  15. only:
  16. - branches
  17. retry: 1
  18. compile(merge master):
  19. stage: COMPILE
  20. script:
  21. - git pull origin master
  22. - bash .rider/make_update.sh
  23. - bazel info
  24. - pwd
  25. - bash .rider/bazel_build.sh
  26. only:
  27. - branches
  28. retry: 1
  29. gometalinter:
  30. stage: LINT
  31. allow_failure: true
  32. script:
  33. - echo "gometalinter"
  34. - pwd
  35. - bash .rider/lint.sh
  36. only:
  37. - branches
  38. saga check:
  39. stage: LINT
  40. allow_failure: false
  41. script:
  42. - echo "saga check"
  43. - pwd
  44. - bash .rider/sagacheck.sh
  45. except:
  46. - master
  47. unit test:
  48. stage: TEST
  49. # allow_failure: true
  50. script:
  51. - echo "go unit test run"
  52. - pwd
  53. - bash .rider/unit_test.sh
  54. only:
  55. - branches
  56. tags:
  57. - uat-unittest