Travis build with nodejs en custom ftp

蓝咒 提交于 2019-12-11 03:59:48

问题


I m trying to use travis CI with nodejs and I m facing a problem like this one.

What I want here, is only to use ftp to upload my file, not to run any command.

No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)

I dont know what is the problem actually... Here's my travis.yml file :

env:
  global:
    - "FTP_USER=xxx"
    - "FTP_PASSWORD=xxx"
after_success:
    "curl --ftp-create-dirs -T uploadfilename -u $FTP_USER:$FTP_PASSWORD ftp://xxxx.fr/www/mochatest"

What am I doing wrong ?


回答1:


I faced similar scenario when I decided to use Travis-CI with HTML+JS app. I finally ended up deployment from my package.json file via "posttest" section. I wrote some code which uses ftp-deploy npm module to upload the files. Test repository here.



来源:https://stackoverflow.com/questions/30692340/travis-build-with-nodejs-en-custom-ftp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!