Skip to content

Instantly share code, notes, and snippets.

@mschmulen
Last active August 29, 2015 14:04
Show Gist options
  • Save mschmulen/05f912bad39afd3e754f to your computer and use it in GitHub Desktop.
Save mschmulen/05f912bad39afd3e754f to your computer and use it in GitHub Desktop.
e7m scripts for clean build, run and test
# usage:
# mkdir -p ios; cd ios; curl -fsSL https://gist.githubusercontent.com/mschmulen/05f912bad39afd3e754f/raw/7bc8ddb33cb25df36a6457b6f5c8f29408cde7ca/auto.sh
mkdir -p manufacture; cd manufacture; curl -fsSL https://gist.githubusercontent.com/mschmulen/05f912bad39afd3e754f/raw/e7m.manfuacture.sh | sh
mkdir -p exposure; cd exposure; curl -fsSL https://gist.githubusercontent.com/mschmulen/05f912bad39afd3e754f/raw/e7m.exposure.sh | sh
mkdir -p transport; cd transport; curl -fsSL https://gist.githubusercontent.com/mschmulen/05f912bad39afd3e754f/raw/e7m.transport.sh | sh
# Exposure build script
# mkdir -p scratchExposure; cd scratchExposure; curl -fsSL https://gist.githubusercontent.com/mschmulen/05f912bad39afd3e754f/raw/4378d2c531f8ed3d1db21d2e892befa9fb03a288/e8m.sh | sh
# Machine dependency prerequisites:
# XCode ( http://developer.apple.com )
# Ruby 2.0+ `ruby -v` , optional RVM `rvm --rvmrc --create use 1.9.3@calabash`
# Pods `gem install cocoapods`
# Calabash `gem install calabash-cucumber`
echo 'remove previous repos'
rm -rf ios-common
rm -rf ios-exposure
echo 'clone common and exposure'
git clone [email protected]:elementumscm/ios-common.git
git clone [email protected]:elementumscm/ios-exposure.git
echo 'tooling requirements'
# gem install calabash-cucumber
# sudo gem install gem install cocoapods
echo 'config'
cd ios-exposure/Exposure
pod install
cd ../
echo 'build and run the automation framework'
cd Automation/
./run-build.sh
# open Exposure.xcworkspace
# echo 'erase the projects'
# rm -rf ios-common
# rm -rf ios-exposure
echo 'done e7m.exposure.sh'
#to run: mkdir scratchManufacture; cd scratchManufacture; curl -fsSL https://gist.githubusercontent.com/mschmulen/05f912bad39afd3e754f/raw/e7m.manfuacture.sh | sh
# Machine dependency prerequisites:
# XCode ( http://developer.apple.com )
# Ruby 2.0+ `ruby -v` , optional RVM `rvm --rvmrc --create use 1.9.3@calabash`
# Pods `gem install cocoapods`
echo 'remove previous repos'
rm -rf ios-manufacture
echo 'clone manufacture'
git clone [email protected]:elementumscm/ios-manufacture.git
echo 'config'
cd ios-manufacture
git submodule init
git submodule update
echo 'build and run the automation framework'
cd Automation/
./run-build.sh
echo 'open the project'
cd ..
#open open ManufactureApp/Manufacture.xcodeproj/
# echo 'erase the projects'
# rm -rf ios-manufacture
echo 'done - e7m.manufacture.sh'
#!/bin/sh
# auto.sh - pull build scripts from git and execute
APP=$1
if [[ $1 != "manufacture" && $1 != "exposure" && $1 != "transport" ]]; then
echo "nothing to build"
echo "usage: auto.sh manufacture|exposure|transport"
exit
else
echo "$0 will build $1"
fi
echo "cleaning up previous build..."
if [ -d $APP ]; then
rm -rf $APP
else
mkdir -p $APP; cd $APP
fi
echo "building $APP"
if [ "$APP" == "manufacture" ]; then
curl -fsSL https://gist.githubusercontent.com/mschmulen/05f912bad39afd3e754f/raw/719d6bca2b7b12f90bb729c68df17c67ed9e4a92/e7m.manfuacture.sh | sh
elif [ "$APP" == "exposure" ]; then
curl -fsSL https://gist.githubusercontent.com/mschmulen/05f912bad39afd3e754f/raw/129117c8b0c6b6b07a73bdf89dd3f7e560c3490e/e7m.exposure.sh | sh
elif [ "$APP" == "transport" ]; then
curl -fsSL https://gist.githubusercontent.com/mschmulen/05f912bad39afd3e754f/raw/7eb02a01e1c137a36b93877ed54841b195e3a733/e7m.transport.sh | sh
fi
echo "$0 has finished."
# Tranport
rm -rf ios-common
rm -rf ios-transport
echo 'clone common and transport'
git clone [email protected]:elementumscm/ios-common.git
git clone [email protected]:elementumscm/ios-transport.git
echo 'tooling requirements'
# sudo gem install gem install cocoapods
echo 'config'
cd ios-transport/Transport
pod install
cd ../../
echo 'build using automation framework'
echo 'build the projects'
#open Transport.xcworkspace
echo 'erase the projects'
# rm -rf ios-common
# rm -rf ios-transport
echo 'done e7m.transport.sh'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment