A multipurpose python flask API server and administration SPA
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.

32 lines
549 B

  1. stages:
  2. - test
  3. - deploy
  4. tests:
  5. image: python:3.7-slim-stretch
  6. stage: test
  7. script:
  8. - python3 -m pip install pipenv
  9. - cd server
  10. - pipenv install --dev --system
  11. - bash ./run_tests.sh
  12. tags:
  13. - docker
  14. pages:
  15. image: python:3.7-slim-stretch
  16. stage: deploy
  17. script:
  18. - python3 -m pip install pipenv
  19. - cd server
  20. - pipenv install --dev --system
  21. - cd documentation
  22. - sphinx-build -M html "." "_build"
  23. - mv _build/html/ ../../public/
  24. artifacts:
  25. paths:
  26. - public
  27. tags:
  28. - docker
  29. only:
  30. - master