Instructions on how to setup Jenkins CI on a Mac for use with test-kitchen. Since I need to test against OS X Images, I'm using Vagrant, the Vagrant VMWare Plugin and VMWare Fusion.
All of these operations are done with the admin user.
[ | |
{ "keys": ["ctrl+shift+x"], "command": "tidy_xml" }, | |
{ "keys": ["ctrl+shift+j"], "command": "prettify_json" } | |
] |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
Instructions on how to setup Jenkins CI on a Mac for use with test-kitchen. Since I need to test against OS X Images, I'm using Vagrant, the Vagrant VMWare Plugin and VMWare Fusion.
All of these operations are done with the admin user.
#!/bin/bash | |
# Bender | |
# Written by Chad Nielsen | |
# Forget Computers, Get Creative! | |
# Version History | |
# 1.0 - Initial creation of script for use with a companion launch daemon. | |
# 1.1 - Moved binary and log locations to /usr/local/robotcloud. | |
# 1.2 - Code improvements and added compatibility with OS X 10.9 Mavericks. |
#!/bin/bash | |
# encode.sh | |
# | |
# Copyright (c) 2013 Don Melton | |
# | |
# This version published on June 7, 2013. | |
# | |
# Re-encode video files in a format suitable for playback on Apple TV, Roku 3, | |
# iOS, OS X, etc. |
#!/bin/bash | |
# Copy the com.avid.bsd.DigiShoeTool Helper Tool | |
PHT_DIGISHOETOOL="/Library/PrivilegedHelperTools/com.avid.bsd.DigiShoeTool" | |
/bin/cp "/Applications/Pro Tools.app/Contents/Library/LaunchServices/com.avid.bsd.DigiShoeTool" $PHT_DIGISHOETOOL | |
/usr/sbin/chown root:wheel $PHT_DIGISHOETOOL | |
/bin/chmod 544 $PHT_DIGISHOETOOL | |
# Create the Launch Deamon Plist for com.avid.bsd.DigiShoeTool |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>KeepAlive</key> | |
<true/> | |
<key>Label</key> | |
<string>com.nheinric.hubot</string> | |
<!-- LSEnvironment does not work for PATH. I don't know why. | |
https://developer.apple.com/library/ios/documentation/general/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/20001431-106825 |
1. Install: https://github.com/julienXX/terminal-notifier | |
2. Have iterm2: https://www.iterm2.com/ | |
3. In iterm2, setup a trigger on your "Profile" => "Advanced" => "Triggers", like | |
https://www.evernote.com/l/AAX11ukjn5pDSYrbR54z_vNJuv-U6jyU6BAB/image.png | |
Where regexp is: "Deployment .+ for .+ on deployment id .*" | |
and params are "/usr/local/bin/terminal-notifier -title "Deployment finished" -message "\0" | |
4. That should do it. You can test it out by running: | |
sleep 5 && echo "Deployment succeeded for Peach-API on deployment id d-GXY9RDCGB |
;; cljsbuild warnings | |
^WARNING:.* ;; yellow on black | |
;; cljs.test in phantom-js errors, i.e. "ReferenceError: Can't find variable: React" | |
^\w*rror:.* ;; red foreground | |
;; test success, failures, errors (red/green bar) | |
0 (errors|failures).* ;; green background | |
(?!0)\d+ (errors|failures).* ;; red background |