mirror of
https://github.com/mas-cli/mas
synced 2024-11-26 13:30:18 +00:00
31 lines
608 B
Bash
Executable file
31 lines
608 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
main() {
|
|
script/clean
|
|
build
|
|
|
|
# If this is a tagged build we are going to release
|
|
if [[ ! -z $TRAVIS_TAG ]]; then
|
|
archive
|
|
fi
|
|
}
|
|
|
|
build() {
|
|
set -o pipefail && \
|
|
xcodebuild -workspace "mas-cli.xcworkspace" \
|
|
-scheme "mas-cli Release" \
|
|
-configuration Release \
|
|
clean build \
|
|
| bundle exec xcpretty --color
|
|
}
|
|
|
|
archive() {
|
|
set -o pipefail && \
|
|
xcodebuild -workspace "mas-cli.xcworkspace" \
|
|
-scheme "mas-cli Release" \
|
|
-archivePath mas.xcarchive \
|
|
archive \
|
|
| bundle exec xcpretty --color
|
|
}
|
|
|
|
main
|