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
903B

  1. language: node_js
  2. node_js:
  3. - '8'
  4. env:
  5. global:
  6. - GH_USER_EMAIL="travis@example.org"
  7. - GH_USER_NAME="cozy-bot"
  8. - DEPLOY_REPOSITORY="git@github.com:konnectors/net-entreprise-micro.git"
  9. cache:
  10. yarn: true
  11. directories:
  12. - node_modules
  13. branches:
  14. except:
  15. - build
  16. - build-debug
  17. script:
  18. - yarn lint
  19. - yarn build
  20. - yarn run check
  21. deploy:
  22. - provider: script
  23. skip-cleanup: true
  24. script: DEPLOY_BRANCH=build yarn deploy && yarn cozyPublish
  25. on:
  26. branch: master
  27. - provider: script
  28. skip-cleanup: true
  29. script: DEPLOY_BRANCH=build yarn deploy && yarn cozyPublish
  30. on:
  31. tags: true
  32. before_install:
  33. - openssl aes-256-cbc -K $encrypted_fb9d73f038c1_key -iv $encrypted_fb9d73f038c1_iv
  34. -in github_deploy_key.enc -out /tmp/github_deploy_key -d
  35. - eval "$(ssh-agent -s)"
  36. - chmod 600 /tmp/github_deploy_key
  37. - ssh-add /tmp/github_deploy_key
  38. after_deploy:
  39. - rm /tmp/github_deploy_key
  40. - ssh-add -D