In travis.ci, the best solution is to use their build matrix.
For example, using an environment variable to store the version in use, you can specify a specific version after npm install :
env: - JQUERY=1.11 - JQUERY=2.2 - JQUERY=3.0.0-beta1 install: - npm install - npm install jquery@ $JQUERY
Marc-andrΓ© lafortune
source share