-
Notifications
You must be signed in to change notification settings - Fork 25
/
.travis.yml
35 lines (26 loc) · 986 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
os: osx
addons:
homebrew:
packages:
- zig
- coreutils # gtimeout
casks:
- textmate
script: |
# "install" bundle
mkdir -p "$HOME/Library/Application Support/TextMate/Bundles/"
ln -s $PWD "$HOME/Library/Application Support/TextMate/Bundles/Zig.tmbundle"
# run TextMate, capture output
/Applications/TextMate.app/Contents/MacOS/TextMate | tee textmate.out &
# don't expect the bundle to be mentioned in output as that would indicate an error
! grep Zig.tmbundle textmate.out
# open a sample source
mate hello.zig
# use Build command via keyboard shortcut
osascript -e 'activate application "TextMate"' -e 'tell application "System Events" to keystroke "b" using command down'
# wait for binary to be built
gtimeout 30 /bin/sh -c 'while ! ls hello 2>/dev/null; do sleep 1; done'
./hello
# debugging
# screencapture test.png; cat test.png | base64
osascript -e 'tell application "TextMate" to quit'