-
Notifications
You must be signed in to change notification settings - Fork 48
/
.travis.yml
79 lines (74 loc) · 1.97 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
aliases:
- &xcode
script: set -o pipefail && xcodebuild -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "$TRAVIS_XCODE_SCHEME" test | xcpretty
xcode_workspace: Commandant.xcworkspace
xcode_scheme: Commandant
os: osx
language: objective-c
- &cocoapods
script:
- rm .swift-version
- gem update cocoapods
- pod setup
- pod lib lint --verbose
os: osx
language: objective-c
env: JOB=CocoaPods
- &swiftpm
script:
- swift --version
- swift build
- swift test
git:
submodules: false
- &swiftpm_darwin
<<: *swiftpm
os: osx
language: objective-c
env: JOB=SPM
- &swiftpm_linux
<<: *swiftpm
sudo: required
dist: xenial
language: generic
install:
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
branches:
only:
- master
matrix:
include:
- <<: *xcode
name: Xcode 11.4 / Swift 5.2
osx_image: xcode11.4
env: JOB=Xcode11.4
- <<: *cocoapods
name: CocoaPods Lint
osx_image: xcode11.4
- <<: *swiftpm_darwin
name: SwiftPM / Swift 5.2
osx_image: xcode11.4
- <<: *swiftpm_linux
name: Linux / Swift 5.2
env:
- JOB=Linux
- SWIFT_VERSION=5.2
notifications:
email: false
slack:
secure: DBDJCDEfXVb4g1/vziIYpjwCE5dh75SwBGZAcqbk6wOl6KFS9lA+fk/PtAbuXAEkRNr5qv56aQ+NPRnjSdqmhKB9bwywxUI7LA1JlvxAk6HUya0XWLLH0dvkRJG1o6QWiOnZ79gjWvl/VuN/YH9X7SgwdTTA4xush8ogP+ku8YE=
before_deploy:
- brew update
- brew outdated carthage || brew upgrade carthage
- carthage build --no-skip-current --platform mac
- carthage archive Commandant
deploy:
provider: releases
api_key:
secure: C5x9Hj0fip8nfrke4AhGNDsmpQsjiB/Mbu6yKwW0MFn46cys64uPajKMDmwcK0512h4eW1HxkmKkaiqfv42gN3Qq+iDmmC7+DNSXgZQ/bj2h5O/t85L6Y+JQGhqbZ6XwAoEcyzFvmkbczR+Xtd0RwQR4WUhqIRElmlCfHe20ST8=
file: Commandant.framework.zip
skip_cleanup: true
on:
repo: Carthage/Commandant
tags: true
condition: $JOB = Xcode10.1