Travis build with nodejs en custom ftp

2019-08-08 18:54发布

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条回答
看我几分像从前
2楼-- · 2019-08-08 19:38

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.

查看更多
登录 后发表回答