Skip to content

Instantly share code, notes, and snippets.

@joduplessis
Created January 4, 2019 01:47
Show Gist options
  • Save joduplessis/d82a82e48bcb58f314f82596280bb7f6 to your computer and use it in GitHub Desktop.
Save joduplessis/d82a82e48bcb58f314f82596280bb7f6 to your computer and use it in GitHub Desktop.
TravisCI doesn't seem to play too nice with Node - snippet of a Node build & FTP push (hangs). For reference though.
language: node_js
sudo: false
addons:
apt:
packages:
- lftp
os: linux
node_js:
- "9.11.2"
branches:
only:
- master
before_script:
- npm i
script:
- npm run build
- lftp -u $FTP_USER,$FTP_PASSWORD $FTP_HOST -e "mirror -R -p ./dist/ public_html ; quit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment