mas/script/build

22 lines
380 B
Text
Raw Normal View History

#!/bin/bash -e
2015-09-19 23:43:03 +01:00
main() {
2015-09-20 11:23:36 +01:00
script/clean
build
# If this is a tagged build we are going to relase
if [[ ! -z $TRAVIS_TAG ]]; then
archive
fi
}
build() {
xcodebuild -project "mas-cli.xcodeproj" -scheme mas-cli clean build | xcpretty -c
}
archive() {
xcodebuild -project "mas-cli.xcodeproj" -scheme mas-cli -archivePath mas.xcarchive archive | xcpretty -c
}
main