-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
99 lines (85 loc) · 2.74 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
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: Environment.xcodeproj
xcode_scheme: Environment-Package
jobs:
include:
- &linux
name: Linux / Swift 5.0.1
env: SWIFT_VERSION=5.0.1
os: linux
language: generic
install: eval "$(curl -sL https://raw.githubusercontent.com/kylef/swiftenv/1.4.0/docs/install.sh)"
script: swift test --parallel
- <<: *linux
name: Linux / Swift 5.1
env: SWIFT_VERSION=5.1
- &macOS
name: macOS / Swift 5.0
osx_image: xcode10.2
script: swift test --parallel
- <<: *macOS
name: macOS / Swift 5.1
osx_image: xcode11
- &xcodebuild
name: iOS / Swift 5.0
osx_image: xcode10.2
xcode_destination: platform=iOS Simulator,OS=latest,name=iPhone XS
before_install: swift package generate-xcodeproj --enable-code-coverage
after_success: bash <(curl -s https://codecov.io/bash)
- <<: *xcodebuild
name: iOS / Swift 5.1
xcode_destination: platform=iOS Simulator,OS=13.0,name=iPhone 11
osx_image: xcode11
- <<: *xcodebuild
name: tvOS / Swift 5.0
xcode_destination: platform=tvOS Simulator,OS=latest,name=Apple TV
- <<: *xcodebuild
name: tvOS / Swift 5.1
xcode_destination: platform=tvOS Simulator,OS=13.0,name=Apple TV
osx_image: xcode11
- <<: *xcodebuild
name: watchOS / Swift 5.0
script: |
set -o pipefail
xcodebuild \
-project Environment.xcodeproj \
-scheme Environment-Package \
-destination 'platform=watchOS Simulator,OS=latest,name=Apple Watch Series 4 - 40mm' \
build | xcpretty
after_success: false
- <<: *xcodebuild
name: watchOS / Swift 5.1
osx_image: xcode11
script: |
set -o pipefail
xcodebuild \
-project Environment.xcodeproj \
-scheme Environment-Package \
-destination 'platform=watchOS Simulator,OS=6.0,name=Apple Watch Series 4 - 40mm' \
build | xcpretty
after_success: false
- 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 USE_SWIFT_RESPONSE_FILE=NO
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: docs
on:
tags: true