Integration test connected to an FTP

Asked

Viewed 212 times

5

It is possible to-or if there is a tool that enables me to send certain purchases of a project to an FTP after it passes a continuous integration test (Travis-ci for example)?

The idea is that after I make one commit and the test is completed and pass all tests, the changes which have consequently been successfully made are published automatically.

There are other ways to have a result close to that or maybe some better solution?

If it’s any help, I currently use Git as a versioning tool, use Github as a repository manager, and continue using Travis-ci for integration.

  • 1

    Have you tried using the notifications do Travis? can run a URL for example: http://docs.travis-ci.com/user/notifications/#Webhook-notification

  • Cool, I don’t know if it’s the best solution but it might help solve if I create a script to publish the changes myself.

1 answer

2

I shared my question and some fellow developers helped me with some dirt. I came to this link which is a page about Travis-ci Custom Deployment specifically:

http://docs.travis-ci.com/user/deployment/custom/

They also told me another solution. Use a task manager like Grunt or Gulp for example, and use a callback as after_success (http://docs.travis-ci.com/user/build-configuration/#Build-Lifecycle) from Travis-ci to perform a task that makes the functionality of connecting with an FTP and sending the desired files.

I believe that both ideas are valid although each is better for specific situations I believe.

I researched and found some complements that might help with that:

Grunt:

https://github.com/zonak/grunt-ftp-deploy https://www.npmjs.org/package/grunt-ftp

Gulp:

https://github.com/sindresorhus/gulp-ftp

I also imagined a possible mechanic with the @Sergio comment. Can I use Webhook notification to send a notification to a specific URL and deploy it.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.