-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
33 lines (32 loc) · 1.17 KB
/
circle.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
machine:
environment:
# Set fake scheme and workspace so that CircleCI will continue without errors.
# See https://discuss.circleci.com/t/is-there-a-way-to-force-building-on-os-x/4079/8
XCODE_SCHEME: fake
XCODE_WORKSPACE: fake
# Ensure that homebrew doesn't update or else it will override our tap. (I think)
HOMEBREW_NO_AUTO_UPDATE: 1
# Make sure that the path to homebrew is set so the ahoy file can be found.
PATH: '$PATH:/usr/local/bin'
AHOY_RELEASE_VERSION: 2.0.0-beta1
test:
override:
# Symlink the tap into it's proper location so it's picked up on install.
# It seems there isn't a better way to do this.
- ln -s $(pwd) /usr/local/Homebrew/Library/Taps/homebrew/.
# Install the latest version of ahoy.
- |
brew install ahoy
brew info ahoy
version=`ahoy --version`
echo "$version"
if [ "$version" != "$AHOY_RELEASE_VERSION" ]; then
echo "Versions don't match: [$version] != [$AHOY_RELEASE_VERSION]"
else
echo "Versions match: [$version]"
fi
- brew uninstall ahoy
# Install the master branch of ahoy.
- |
brew install --HEAD ahoy
ahoy --version