-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
36 lines (36 loc) · 2.23 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
osx_image: xcode9
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
- WORKSPACE=Graphicz.xcworkspace
- IOS_FRAMEWORK_SCHEME="Graphicz-ios"
- OSX_FRAMEWORK_SCHEME="Graphicz-osx"
- TVOS_FRAMEWORK_SCHEME="Graphicz-tvos"
- WATCHOS_FRAMEWORK_SCHEME="Graphicz-watchos"
- IOS_SDK=iphonesimulator11.0
- OSX_SDK=macosx10.13
- TVOS_SDK=appletvsimulator11.0
- WATCHOS_SDK=watchsimulator4.0
matrix:
- DESTINATION="OS=10.1,name=iPhone 5" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES"
- DESTINATION="OS=10.1,name=iPhone 5S" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES"
- DESTINATION="OS=11.0,name=iPhone 6" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES"
- DESTINATION="OS=11.0,name=iPhone 6S" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES"
- DESTINATION="arch=x86_64" SCHEME="$OSX_FRAMEWORK_SCHEME" SDK="$OSX_SDK" RUN_TESTS="YES"
before_install:
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks
- if [ $RUN_TESTS == "YES" ]; then xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME"
-sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO
test | xcpretty -c; else xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk
"$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build
| xcpretty -c; fi
notifications:
email: false
slack:
secure: UwHcF6r+9U5bg4ZDfoPotEhiMuxhVUU+ZvUD7oPmP1jwBq82YqPz1WmVPPXe1ZBhGw36hFjSUrWYL08l7hZZ1WHZviI6EdTGrit11K6lqnqbMJj5/l41Dqssb5nmd6gyLEEZHvXxJBu7wuvdxZtKUDYA0dsxHixWetvpf9GWYzC/gAjlOncIQ+NXo4ogDJOgWLszhHOSgLm8xY0dDt6Xk8xqFi8hqsrT5qKY16BKkw0mOS0PiTHq/FnUCgR0KztUbdcyHZkImqtCP3uuccYzpKRrjwwdggt6GYCWqJz2KMmtiTL6cBDrXJ60Ga6Fjdfk5kl0NMARkw6SohttyqZM2rsWMDROw37UbSqo8QkeIFPmjs8vZg6UvnaSah5boEK5qOwDvSNR5NYOWL8EN4DugE0LdZfu9uDYCEpRNKetzPqf05rVpThdeKtbOqnQwFoiYgg6HcOWc/feJvR9wJr7MsbjwNMDXSZ0FQ+Ctdx2ejNe1Ay3c32cXE4AY2DhuH8HO1aFuss0NPLTFhgjpQZTkQzQ5G/vGHAtXLhK2a6LNKCJOhQB/BlVhnR6X13v5exam1f4w8rI7UYU01R4R+1d//oNRj0ijZ7hnnC4puyLSP0a1bc44VCqnMc2WsDqBfBOi0EEZcG4HvAw5wbfCrmiyGV2pp0veH2rpx2qGgPERaM=