-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (44 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
37
38
39
40
41
42
43
44
45
46
47
48
49
branches:
only:
- master
language: objective-c
osx_image: xcode10
matrix:
include:
- os: osx
env:
- SCHEME="Once-iOS"
- SDK="iphonesimulator12.0"
- DESTINATION="OS=12.0,name=iPhone X"
- os: osx
env:
- SCHEME="Once-macOS"
- SDK="macosx10.13"
- DESTINATION="arch=x86_64"
- os: osx
env:
- SCHEME="Once-tvOS"
- SDK="appletvsimulator12.0"
- DESTINATION="OS=12.0,name=Apple TV 4K"
- os: linux
sudo: required
dist: trusty
before_install:
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
gem install xcpretty --no-rdoc --no-ri --no-document --quiet;
fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
eval "$(curl -sL https://swiftenv.fuller.li/install.sh)";
fi
script:
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
xcodebuild clean build test -project Once.xcodeproj -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -enableCodeCoverage YES | xcpretty;
fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
swift build;
swift test;
fi
after_success:
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
bash <(curl -s https://codecov.io/bash) -J 'Once';
fi