Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Travis Commandbox Plugin Test
language: java
sudo: required
- oraclejdk8
# Get Commandbox
- sudo apt-key adv --keyserver --recv 6DA70622
- sudo echo "deb /" | sudo tee -a /etc/apt/sources.list.d/commandbox.list
# Install Commandbox
- sudo apt-get update && sudo apt-get --assume-yes install commandbox
# Check it's working
- box version
# Install CLI: needed to repackage the plugin to a zip on install
- box install cfwheels-cli
# Install Master Branch; nb, installed into folder of the git repo name, i.e neokoenig/cfwheels-ical4j
- box install cfwheels/cfwheels
# Install the Plugin: use gitHub path to get the absolute latest rather than the forgebox version
- box install neokoenig/cfwheels-ical4j
# Master branch has a bunch of server.jsons we can use: lucee4 | lucee5 | cf10 | cf11 | cf2016
- box server start lucee5
# Type should be the name of the plugin | servername should reflect the server we've just started
script: >
testResults="$(box wheels test type=ical4j servername=lucee5)";
echo "$testResults";
if ! grep -i "\Tests Complete: All Good!" <<< $testResults; then exit 1; fi
email: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment