mirror of
https://github.com/mas-cli/mas
synced 2024-11-23 03:53:09 +00:00
21 lines
442 B
Bash
Executable file
21 lines
442 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 -project "mas-cli.xcodeproj" -scheme mas-cli -configuration Release clean build | xcpretty -c
|
|
}
|
|
|
|
archive() {
|
|
set -o pipefail && xcodebuild -project "mas-cli.xcodeproj" -scheme mas-cli -archivePath mas.xcarchive archive | xcpretty -c
|
|
}
|
|
|
|
main
|