Repository navigation
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·68 lines (59 loc) · 1.53 KB
/
Copy pathbootstrap.sh
File metadata and controls
executable file
·68 lines (59 loc) · 1.53 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/sh
set -eu
read -p "Do you want to install misplaced views and focused tests pre-commit hook? " -n 1 -r
echo
if [[ $REPLY =~ ^[YySs]$ ]]
then
sh Scripts/install_pre_commit.sh
fi
echo "Verifying Xcode Command Line Tools..."
if ! xcode-select -p ; then
echo "You need Xcode Command Line Tools for this project, installing..."
xcode-select --install
fi
echo "Verifying bundler gem..."
if ! gem which bundler ; then
echo "You need bundler gem for this project, installing..."
sudo gem install bundler
echo "Bundler gem installed!"
fi
echo "Downloading XcodeGen..."
git clone https://github.com/yonaskolb/XcodeGen.git
echo "Installing XcodeGen..."
make -C XcodeGen
rm -rf XcodeGen
echo "Generating project..."
xcodegen
echo "Installing Ruby dependencies..."
bundle install
echo "Installing CocoaPods dependencies..."
pod install
echo "All dependencies installed!"
read -p "Do you want to use fastlane tools? " -n 1 -r
echo
if [[ $REPLY =~ ^[YySs]$ ]]
then
echo "Configuring fastlane..."
bundle exec fastlane init
echo "Configuring snapshot..."
bundle exec fastlane snapshot init
echo "Ready for fastlane tools!"
read -p "Do you want to use danger? " -n 1 -r
echo
if [[ $REPLY =~ ^[YySs]$ ]]
then
echo "Configuring danger..."
bundle exec danger init
echo "Ready for danger!"
fi
fi
echo "Committing..."
git add .
git commit -qam "First Commit"
echo "Committed!"
echo "Creating qa branch..."
git checkout -b qa
echo "Creating develop branch..."
git checkout -b develop
echo
echo "Everything ready, enjoy your new Intelygenz project! 🍻"