the0938

Untitled

May 18th, 2021 (edited)
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. stages:
  2. - test
  3.  
  4. .test:
  5. image: node:alpine
  6. stage: test
  7. before_script:
  8. - yarn install --production=false --silent
  9. script:
  10. - echo "$CONFIG" >> ./.env
  11. - echo "$CONFIG_OVERRIDE" >> ./.env
  12. - yarn test
  13. only:
  14. - merge_requests
  15.  
  16. .prod:
  17. variables:
  18. NODE_ENV: production
  19. CONFIG: $CONFIG_PROD
  20. only:
  21. - master
  22.  
  23. .dev:
  24. variables:
  25. NODE_ENV: production
  26. CONFIG: $CONFIG_DEV
  27. only:
  28. - develop
  29.  
  30. .bleeding:
  31. variables:
  32. NODE_ENV: production
  33. CONFIG: $CONFIG_DEV
  34. CONFIG_OVERRIDE: $CONFIG_BLEEDING
  35. only:
  36. - bleeding
  37.  
  38. test_prod:
  39. extends:
  40. - .prod
  41. - .test
  42.  
  43. test_dev:
  44. extends:
  45. - .dev
  46. - .test
  47.  
  48. test_bleeding:
  49. extends:
  50. - .bleeding
  51. - .test
  52.  
Add Comment
Please, Sign In to add comment