This will allow us to run tests on both OS X and Linux via Travis CI.
What is currently working
As of b321378 this is working. HOWEVER, there currently is a downside (that maybe we can script our way out of, needs more investigating), we only are testing one version of node. Latest stable v5.x.x.
This is because we had to change the language option to bash vs node_js. The reason for this is because we need to invoke the nvm commands at a later time (in OS X case, after it is actually installed). Otherwise, nvm will attempt to run before it's installed on OSX, and fail before even getting to before_install.
So this forced us to change to language: bash. We then detect the OS version, and run OS specific code first, then the rest of the before_install, which includes installing NVM and installing a version of node.
Things to do
[x] Get Travis CI running tests in both Linux and OS X.
[ ] Have the Linux runs use latest Travis CI containers vs the legacy setup. (Speeds up builds, downside is no sudo, however see: apt).
[ ] Investigate running several node version checks and not just v5.x.x.
WIP
This will allow us to run tests on both OS X and Linux via Travis CI.
What is currently working
As of
b321378
this is working. HOWEVER, there currently is a downside (that maybe we can script our way out of, needs more investigating), we only are testing one version of node. Latest stablev5.x.x
.This is because we had to change the
language
option tobash
vsnode_js
. The reason for this is because we need to invoke thenvm
commands at a later time (in OS X case, after it is actually installed). Otherwise,nvm
will attempt to run before it's installed on OSX, and fail before even getting tobefore_install
.So this forced us to change to
language: bash
. We then detect the OS version, and run OS specific code first, then the rest of thebefore_install
, which includes installing NVM and installing a version of node.Things to do
sudo
, however see:apt
).v5.x.x
.