mas/Carthage/Checkouts/Commandant/.travis.yml
2021-02-12 16:42:32 -08:00

79 lines
2 KiB
YAML

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