It seems to be possible now to run several languages in one .travis.yml file using the matrix:include feature. As an example, my Github repo is arranged as follows:
It seems you can build as many different configurations as you like using this feature, by treating each entry in the matrix as a top level config. Of course, if you have any parameters you want to set that apply to all languages, you can do that at the top level, as I do here with the notifications:email section.
When it is all set up, then on each build, you get something like this. Boom.
回答2:
On a Travis Java build environment, you can use nvm to manage Node.js runtimes:
The above example shows how to first update to nvm v0.31, to then obtain Node v5.
回答3:
You can't add multiple languages, which explains the behavior you are seeing, and the node_js setting will only be recognized in a node language project. What you can do is utilize the incorporated nvm in TravisCI. For example, you can include - nvm install 0.10 - nvm use 0.10 in your before_install section to download the latest v0.10.x release of node.