Running on multiple versions

Travis provides functionality to run builds with multiple environments. Each individual environment is a row in a build matrix. We can use this to execute under different versions of ComputerCraft.

Firstly we'll need to setup our .travis.yml file to list the different environments. We'll specify a list of ComputerCraft versions and the appropriate download url. We're using the download links from this page.

env:
  - CC_VERSION=1.79 CC_URL=https://addons-origin.cursecdn.com/files/2291/384/ComputerCraft1.79.jar
  - CC_VERSION=1.75 CC_URL=https://addons-origin.cursecdn.com/files/2269/339/ComputerCraft1.75.jar

If you were to run this build now, you'd notice travis would create two jobs: one for each environment. Now we just need to instruct the howl.ci runner to use each version. We can reference these variables in the .howl.ci.properties file.

computercraft.url=${CC_URL|https://addons-origin.cursecdn.com/files/2291/384/ComputerCraft1.79.jar}
computercraft.file=ComputerCraft${CC_VERSION|1.79}.jar

Now commit and push your configuration changes: you should see two builds start and execute under different versions. You might want to log the _HOST variable (or _CC_VERSION on ComputerCraft <= 1.75) so you can tell which version you're using.