:link: A platform for easy integration of TREZOR into 3rd party services. https://github.com/trezor/connect
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
846B

  1. image: node:8.10
  2. stages:
  3. - build
  4. - deploy
  5. build:
  6. stage: build
  7. script:
  8. - npm install -g yarn
  9. - yarn
  10. - yarn flow
  11. - yarn eslint
  12. - yarn test:unit
  13. - make build-connect
  14. artifacts:
  15. expire_in: 1 week
  16. paths:
  17. - build
  18. deploy review:
  19. stage: deploy
  20. variables:
  21. GIT_STRATEGY: none
  22. dependencies:
  23. - build
  24. environment:
  25. name: $CI_BUILD_REF_NAME
  26. url: $BASE_REVIEW_URL/$CI_BUILD_REF_NAME
  27. script:
  28. - echo "Deploy a review app"
  29. - '[ -z "${DEPLOY_BASE_DIR}" ] && echo "Deploy base dir cannot be empty" && exit 255'
  30. - env
  31. - mkdir -p "${DEPLOY_BASE_DIR}/${CI_BUILD_REF_NAME}"
  32. - echo "Copy dev build to web server ${DEPLOY_BASE_DIR}/${CI_BUILD_REF_NAME}..."
  33. - rsync --delete -va build/ "${DEPLOY_BASE_DIR}/${CI_BUILD_REF_NAME}/"
  34. only:
  35. - branches
  36. tags:
  37. - deploy