forked from mozilla-mobile/firefox-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·33 lines (26 loc) · 974 Bytes
/
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
#!/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/*
rm -rf ~/Library/Caches/org.carthage.CarthageKit
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
carthage bootstrap $CARTHAGE_VERBOSE --platform ios --color auto --cache-builds
# Install Node.js dependencies and build user scripts
npm install
npm run build