.travis.yml 660 B

1234567891011121314151617181920212223242526272829
  1. language: node_js
  2. node_js:
  3. - 8
  4. cache:
  5. directories:
  6. - node_modules
  7. - packages/create-react-app/node_modules
  8. - packages/react-scripts/node_modules
  9. install:
  10. - npm install
  11. script:
  12. - npm run build
  13. addons:
  14. ssh_known_hosts: [email protected]
  15. before_deploy:
  16. - openssl aes-256-cbc -K $encrypted_0e0de6dfeb09_key -iv $encrypted_0e0de6dfeb09_iv -in travis/deploy_rsa.enc -out /tmp/deploy_rsa -d
  17. - eval "$(ssh-agent -s)"
  18. - chmod 600 /tmp/deploy_rsa
  19. - ssh-add /tmp/deploy_rsa
  20. deploy:
  21. provider: script
  22. skip_cleanup: true
  23. script: rsync -r --delete-after --quiet $TRAVIS_BUILD_DIR/build/ [email protected]:~/dist/mafalda-web
  24. on:
  25. branch: master