Skip to content

Instantly share code, notes, and snippets.

@loskael
Created August 19, 2018 15:02
Show Gist options
  • Save loskael/de8db0a74c5aa27f37c074f3a89026fc to your computer and use it in GitHub Desktop.
Save loskael/de8db0a74c5aa27f37c074f3a89026fc to your computer and use it in GitHub Desktop.
Travis-CI commit
language: node_js
sudo: true
node_js: node
cache:
directories:
- node_modules
install:
- npm install
before_script:
- git config user.name "Travis-CI"
- git config user.email "[email protected]"
- git remote rm origin
- git remote add origin https://${GH_TOKEN}@${GH_REF}
- git checkout master
script: npm start
after_success:
- git add -A .
- git status
- git commit -a -m "Travis-CI Deployed to Github"
- git push origin master
- echo -e "DONE.\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment