Space Communication System based on CCSDS recommendations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

114 lines
1.9 KiB

  1. image: centos:7
  2. stages:
  3. - build
  4. - test
  5. - review
  6. - staging
  7. - production
  8. - cleanup
  9. variables:
  10. EURYSPACE_CI_SERVER: sources.euryecetelecom.com
  11. EURYSPACE_DOMAIN: euryspace.org
  12. build:
  13. stage: build
  14. image: docker:git
  15. services:
  16. - docker:dind
  17. variables:
  18. DOCKER_DRIVER: overlay2
  19. script:
  20. - setup_docker
  21. test:
  22. stage: test
  23. image: gliderlabs/herokuish:latest
  24. before_script: []
  25. script:
  26. - echo run tests
  27. only:
  28. - branches
  29. codequality:
  30. image: docker:latest
  31. variables:
  32. DOCKER_DRIVER: overlay2
  33. allow_failure: true
  34. services:
  35. - docker:dind
  36. script:
  37. - setup_docker
  38. - codeclimate
  39. artifacts:
  40. paths: [codeclimate.json]
  41. .deploy: &deploy
  42. script:
  43. - echo deploy
  44. review:
  45. <<: *deploy
  46. stage: review
  47. variables:
  48. APP: review-$CI_COMMIT_REF_NAME
  49. APP_HOST: $CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$EURYSPACE_DOMAIN
  50. script:
  51. - echo review
  52. environment:
  53. name: review/$CI_COMMIT_REF_NAME
  54. url: https://$CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$EURYSPACE_DOMAIN
  55. on_stop: stop-review
  56. only:
  57. - branches
  58. except:
  59. - master
  60. stop-review:
  61. <<: *deploy
  62. stage: cleanup
  63. script:
  64. - echo cleanup
  65. when: manual
  66. variables:
  67. APP: review-$CI_COMMIT_REF_NAME
  68. GIT_STRATEGY: none
  69. environment:
  70. name: review/$CI_COMMIT_REF_NAME
  71. action: stop
  72. only:
  73. - branches
  74. except:
  75. - master
  76. staging:
  77. <<: *deploy
  78. stage: staging
  79. script:
  80. - echo staging
  81. variables:
  82. APP: staging
  83. APP_HOST: $CI_PROJECT_NAME-staging.$EURYSPACE_DOMAIN
  84. environment:
  85. name: staging
  86. url: https://$CI_PROJECT_NAME-staging.$EURYSPACE_DOMAIN
  87. only:
  88. - master
  89. production:
  90. <<: *deploy
  91. stage: production
  92. script:
  93. - echo production
  94. variables:
  95. APP: production
  96. APP_HOST: $CI_PROJECT_NAME.$EURYSPACE_DOMAIN
  97. when: manual
  98. environment:
  99. name: production
  100. url: https://$CI_PROJECT_NAME.$EURYSPACE_DOMAIN
  101. only:
  102. - master