forked from mozilla-mobile/firefox-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·34 lines (28 loc) · 1 KB
/
bootstrap.sh
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
#!/bin/sh
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#
# Bootstrap the Carthage dependencies. If the Carthage directory
# already exists then nothing is done. This speeds up builds on
# CI services where the Carthage directory can be cached.
#
# Use the --force option to force a rebuild of the dependencies.
#
if [ "$1" == "--force" ]; then
rm -rf Carthage/*
fi
if ! cmp -s Cartfile.resolved Carthage/Cartfile.resolved; then
rm -rf Carthage/*
fi
# Only enable this on the Xcode Server because it times out if it does not
# get any output for some time while building the dependencies.
CARTHAGE_VERBOSE=""
if [ ! -z "$XCS_BOT_ID" ]; then
CARTHAGE_VERBOSE="--verbose"
fi
if [ ! -f Carthage/Cartfile.resolved ]; then
carthage bootstrap $CARTHAGE_VERBOSE --platform ios --color auto --no-use-binaries
cp Cartfile.resolved Carthage/Cartfile.resolved
fi