An ebook/comic library service and web client
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.

41 lines
714 B

  1. stages:
  2. - test
  3. - deploy
  4. server-tests:
  5. image: python:3.6-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. administration-client-tests:
  15. image: node:8.11-stretch
  16. stage: test
  17. script:
  18. - yarn install
  19. - yarn run test:unit
  20. tags:
  21. - docker
  22. pages:
  23. image: python:3.6-slim-stretch
  24. stage: deploy
  25. script:
  26. - python3 -m pip install pipenv
  27. - cd server
  28. - pipenv install --dev --system
  29. - cd documentation
  30. - sphinx-build -M html "." "_build"
  31. - mv _build/html/ ../../public/
  32. artifacts:
  33. paths:
  34. - public
  35. tags:
  36. - docker
  37. only:
  38. - master