forked from wlisac/swift-log-slack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
70 lines (61 loc) · 2.05 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
65
66
67
68
69
70
if: (type = pull_request) OR (branch = master) OR (tag =~ /^\d+\.\d+\.\d+(-.*)?$/)
stages:
- name: pretest
- name: test
- name: deploy
if: tag =~ /^\d+\.\d+\.\d+(-.*)?$/
os: osx
language: swift
xcode_project: swift-log-slack.xcodeproj
xcode_scheme: swift-log-slack-Package
jobs:
include:
- &linux
name: Linux / Swift 5.1
env: SWIFT_VERSION=5.1
os: linux
language: generic
install: eval "$(curl -sL https://raw.githubusercontent.com/kylef/swiftenv/1.4.0/docs/install.sh)"
script: swift test --enable-code-coverage
after_success: |
llvm-cov export -format="lcov" .build/debug/swift-log-slackPackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > info.lcov
bash <(curl -s https://codecov.io/bash)
- &macOS
name: macOS / Swift 5.1
osx_image: xcode11
script: swift test
- &xcodebuild
name: iOS / Swift 5.1
osx_image: xcode11
xcode_destination: platform=iOS Simulator,OS=13.0,name=iPhone 11
before_install: swift package generate-xcodeproj
- <<: *xcodebuild
name: tvOS / Swift 5.1
xcode_destination: platform=tvOS Simulator,OS=13.0,name=Apple TV
- <<: *xcodebuild
name: watchOS / Swift 5.1
script: |
set -o pipefail
xcodebuild \
-project swift-log-slack.xcodeproj \
-scheme swift-log-slack-Package \
-destination 'platform=watchOS Simulator,OS=6.0,name=Apple Watch Series 4 - 40mm' \
build | xcpretty
- stage: pretest
name: Validate Generated Linux Tests
osx_image: xcode11
install: swift test --generate-linuxmain
script: git diff --exit-code
- name: Jazzy
osx_image: xcode11
stage: deploy
install: gem install jazzy
before_script: swift package generate-xcodeproj
script: jazzy --module-version $TRAVIS_TAG -x -scheme,swift-log-slack-Package
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: docs
on:
tags: true