-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (45 loc) · 1.5 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: objective-c
osx_image: xcode10
cache:
- bundler
- cocoapods
rvm:
- 2.2.2
env:
global:
- WORKSPACE="LonaStudio.xcworkspace"
- SCHEME="LonaStudio"
- DESTINATION="arch=x86_64"
- SDK=macosx10.14
matrix:
- BUILD_EXAMPLE="YES"
- RUN_TESTS="YES"
before_install:
- brew update
- brew outdated carthage || brew upgrade carthage
- BUNDLE_GEMFILE=ci/Gemfile bundle install
- BUNDLE_GEMFILE=studio/Gemfile bundle install
- BUNDLE_GEMFILE=studio/Gemfile bundle exec pod repo update
- BUNDLE_GEMFILE=studio/Gemfile bundle exec pod install --project-directory=studio
before_script:
- cd studio
- carthage bootstrap --new-resolver --platform macOS
- cd ..
script:
- set -o pipefail
- BUNDLE_GEMFILE=ci/Gemfile bundle exec danger --dangerfile=ci/Dangerfile
- cd studio
- carthage build --platform macOS
- xcodebuild -version
- xcodebuild -showsdks
- xcodebuild -list
# Build Lona
- if [ $BUILD_EXAMPLE == "YES" ]; then
xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO build | xcpretty;
fi
# Run Tests
- if [ $RUN_TESTS == "YES" ]; then
xcodebuild -workspace "$WORKSPACE" -sdk "$SDK" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO test | xcpretty;
fi
after_success:
- bash <(curl -s https://codecov.io/bash)