- For fun
- Tutorial link: A quick Travis CI (Continuous Integration) Tutorial for Node.js developers (on github)
-
If I'm using
const
and jshint for testing at the same timesee https://stackoverflow.com/a/37472928
basically, you just need to add a.jshintrc
file, then add{ "esversion": 6 }
- Do notice that
- travis-ci.com and travis-ci.org are not the same thing (private | public)
- so, for some specific stuff you might need to do in a bit different way, e.g.
travis encrypt
when adding env vars
- Three ways to add Environment Variables (dangerous -> kinda safe -> safe)
- whatever: directly add those to
.travis.yml
- travis web interface: something like https://travis-ci.com/USER/REPO_NAME/settings
- encrypt the keys by yourself (I havn't try this in my local machine)
# 1. you need to get 'ruby' installed in your machine # 2. install a library for encrypting the keys gem install travis # 3.1 encrypt it -> then add to 'secure: GENERATED_STUFF' travis encrypt SOMEVAR="secretvalue" --add env.global # 3.2 encrypt it -> then add to 'secure: GENERATED_STUFF' travis login --pro travis encrypt SOMEVAR="secretvalue" --add
- whatever: directly add those to