Speed up Travis CI builds by caching the bundle to ftp. Based on s3 example: https://gist.github.com/matiaskorhonen/5203327
Edit .travis.yml
if you like.
In development run:
$ gem install travis
Log into Travis from inside your project respository directory:
$ travis login --auto
Encrypt your ftp credentials inside the double quotes.
Remember to create sudomain ftp-app in your example.com domain where you'll be able to store archived bundle.
CI_FTP_URL
is a url which will be used to download archived bundle tgz file.
$ travis encrypt CI_FTP_URL="ftp-app.example.com" CI_FTP_HOST="ftp.example.com" CI_FTP_USER="YOUR_FTP_USER" CI_FTP_PASS="YOUR_FTP_PASSWORD"
Put secure token in env.global.secure in .travis.yml
.
Notice: Last generated secure token must be in .travis.yml
. All previous tokens will be invalid.