Created
May 15, 2017 11:29
-
-
Save neokoenig/504ce0108a1caf0f19d54e87c1a8193c to your computer and use it in GitHub Desktop.
Travis Commandbox Plugin Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: java | |
sudo: required | |
jdk: | |
- oraclejdk8 | |
before_install: | |
# Get Commandbox | |
- sudo apt-key adv --keyserver keys.gnupg.net --recv 6DA70622 | |
- sudo echo "deb http://downloads.ortussolutions.com/debs/noarch /" | sudo tee -a /etc/apt/sources.list.d/commandbox.list | |
install: | |
# 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 | |
before_script: | |
# 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 | |
notifications: | |
email: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment