-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
37 lines (30 loc) · 1.19 KB
/
.travis.yml
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
language: objective-c
branches:
only:
- master
xcode_workspace: Emome.xcworkspace
xcode_scheme: EmomeTests
osx_image: xcode7.1
xcode_sdk: iphonesimulator9.1
before_install:
- brew update || brew update
- brew uninstall xctool && brew install --HEAD xctool
install:
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
- gem install xcpretty-travis-formatter --no-rdoc --no-ri --no-document --quiet
before_script:
- ./script/add-key.sh
script:
- set -o pipefail && xcodebuild -workspace ${WORKSPACE} -scheme ${SCHEME} -sdk iphonesimulator9.1 -destination platform='iOS Simulator',OS=9.1,name='iPhone 6s' dONLY_ACTIVE_ARCH=NO clean build | xcpretty -f `xcpretty-travis-formatter` || true
- set -o pipefail && xcodebuild -workspace ${WORKSPACE} -scheme ${SCHEME} -sdk iphonesimulator9.1 -destination platform='iOS Simulator',OS=9.1,name='iPhone 6s' dONLY_ACTIVE_ARCH=NO test | xcpretty -f `xcpretty-travis-formatter`
after_success:
- ./script/dist-fabric-io.sh
after_script:
- ./script/remove-key.sh
env:
global:
- WORKSPACE="Emome.xcworkspace"
- SCHEME="Emome"
- APP_NAME="Emome"
- ARCHIVE_PATH=`pwd`/archive
- PROJECT_BUILD_DIR=${ARCHIVE_PATH}/${APP_NAME}.xcarchive/Products/Applications