forked from HabitRPG/habitica-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (40 loc) · 1.43 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
language: objective-c
cache: cocoapods
osx_image: xcode10.2
install:
- rvm install ruby-2.3.3
- gem install bundler
- bundle update
- bundle install
- brew update
- brew install swiftlint || true
- brew upgrade swiftlint || true
- bundle exec pod repo update
- bundle exec pod install
env:
global:
- GoogleClient=123
- GoogleRedirectUrl=123
- AmplitudeApiKey=123
- SeedsDevApiKey=123
- SeedsReleaseApiKey=123
- SeedsDevGemsInterstitial=123
- SeedsReleaseGemsInterstitial=123
- SeedsReleaseShareInterstitial=123
- SeedsDevShareInterstitial=123
- ItunesSharedSecret=123
- StagingKey=123
- InstabugLive=123
- InstabugBeta=123
- FB_REFERENCE_IMAGE_DIR="./ReferenceImages_32"
matrix:
- DESTINATION="platform=iOS Simulator,name=iPhone 6,OS=10.3.1"
- DESTINATION="platform=iOS Simulator,name=iPhone 8,OS=11.2"
- DESTINATION="platform=iOS SImulator,name=iPhone 8,OS=12.1"
script:
- set -o pipefail
- swiftlint --reporter "emoji"
- xcodebuild -workspace Habitica.xcworkspace -scheme HabiticaTests -destination "$DESTINATION" -sdk iphonesimulator12.2 clean build build-for-testing ONLY_ACTIVE_ARCH=NO | xcpretty -f `xcpretty-travis-formatter`
- xcodebuild -workspace Habitica.xcworkspace -scheme HabiticaTests -destination "$DESTINATION" -sdk iphonesimulator12.2 test-without-building ONLY_ACTIVE_ARCH=NO | xcpretty -f `xcpretty-travis-formatter`
after_success:
- sleep 10