forked from lucas34/SwiftQueue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (51 loc) · 1.44 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
53
54
55
56
57
58
59
60
61
62
63
64
language: swift
osx_image: xcode9.3
cache:
directories:
- Carthage
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
- IOS_FRAMEWORK_SCHEME="SwiftQueue iOS"
- MACOS_FRAMEWORK_SCHEME="SwiftQueue macOS"
- TVOS_FRAMEWORK_SCHEME="SwiftQueue tvOS"
- WATCHOS_FRAMEWORK_SCHEME="SwiftQueue watchOS"
- WORKSPACE="SwiftQueue.xcodeproj"
- DESTINATION="arch=x86_64"
matrix:
- TYPE="DANGER"
- TYPE="CARTHAGE"
- TYPE="SPM"
- TYPE="XCODE"
- TYPE="POD"
before_install:
- if [ $TYPE == "DANGER" ]; then
brew install swiftlint;
bundle install --path vendor/bundle;
fi
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks
- if [ $TYPE == "DANGER" ]; then
bundle exec danger;
fi
- if [ $TYPE == "XCODE" ]; then
carthage bootstrap --platform mac --cache-builds;
xcodebuild -project "$WORKSPACE" -scheme "$MACOS_FRAMEWORK_SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test -enableCodeCoverage YES | xcpretty;
fi
- if [ $TYPE == "CARTHAGE" ]; then
carthage bootstrap --cache-builds;
carthage build --no-skip-current --cache-builds;
fi
- if [ $TYPE == "SPM" ]; then
swift test;
fi
- if [ $TYPE == "POD" ]; then
pod lib lint --allow-warnings;
fi
after_success:
- if [ $TYPE == "XCODE" ]; then
bash <(curl -s https://codecov.io/bash);
fi