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.
 
 
 
 
 
 

106 lines
1.8 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. before_script:
  43. script:
  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. environment:
  51. name: review/$CI_COMMIT_REF_NAME
  52. url: https://$CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$EURYSPACE_DOMAIN
  53. on_stop: stop-review
  54. only:
  55. - branches
  56. except:
  57. - master
  58. stop-review:
  59. <<: *deploy
  60. stage: cleanup
  61. when: manual
  62. variables:
  63. APP: review-$CI_COMMIT_REF_NAME
  64. GIT_STRATEGY: none
  65. environment:
  66. name: review/$CI_COMMIT_REF_NAME
  67. action: stop
  68. only:
  69. - branches
  70. except:
  71. - master
  72. staging:
  73. <<: *deploy
  74. stage: staging
  75. variables:
  76. APP: staging
  77. APP_HOST: $CI_PROJECT_NAME-staging.$EURYSPACE_DOMAIN
  78. environment:
  79. name: staging
  80. url: https://$CI_PROJECT_NAME-staging.$EURYSPACE_DOMAIN
  81. only:
  82. - master
  83. production:
  84. <<: *deploy
  85. stage: production
  86. variables:
  87. APP: production
  88. APP_HOST: $CI_PROJECT_NAME.$EURYSPACE_DOMAIN
  89. when: manual
  90. environment:
  91. name: production
  92. url: https://$CI_PROJECT_NAME.$EURYSPACE_DOMAIN
  93. only:
  94. - master