2018-09-04 23:45:40 +00:00
|
|
|
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
|
2019-03-17 17:30:48 +00:00
|
|
|
- gem update cocoapods
|
2021-02-13 00:42:32 +00:00
|
|
|
- pod setup
|
2018-09-04 23:45:40 +00:00
|
|
|
- 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
|
2021-02-13 00:42:32 +00:00
|
|
|
dist: xenial
|
2018-09-04 23:45:40 +00:00
|
|
|
language: generic
|
|
|
|
install:
|
2019-03-17 17:30:48 +00:00
|
|
|
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
|
2018-09-04 23:45:40 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- <<: *xcode
|
2021-02-13 00:42:32 +00:00
|
|
|
name: Xcode 11.4 / Swift 5.2
|
|
|
|
osx_image: xcode11.4
|
|
|
|
env: JOB=Xcode11.4
|
2018-09-04 23:45:40 +00:00
|
|
|
- <<: *cocoapods
|
2019-03-17 17:30:48 +00:00
|
|
|
name: CocoaPods Lint
|
2021-02-13 00:42:32 +00:00
|
|
|
osx_image: xcode11.4
|
2018-09-04 23:45:40 +00:00
|
|
|
- <<: *swiftpm_darwin
|
2021-02-13 00:42:32 +00:00
|
|
|
name: SwiftPM / Swift 5.2
|
|
|
|
osx_image: xcode11.4
|
2018-09-04 23:45:40 +00:00
|
|
|
- <<: *swiftpm_linux
|
2021-02-13 00:42:32 +00:00
|
|
|
name: Linux / Swift 5.2
|
2018-09-04 23:45:40 +00:00
|
|
|
env:
|
|
|
|
- JOB=Linux
|
2021-02-13 00:42:32 +00:00
|
|
|
- SWIFT_VERSION=5.2
|
2018-09-04 23:45:40 +00:00
|
|
|
|
|
|
|
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
|
2019-03-17 17:30:48 +00:00
|
|
|
condition: $JOB = Xcode10.1
|