mas/Carthage/Checkouts/Commandant/.travis.yml

80 lines
2 KiB
YAML
Raw Normal View History

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
- 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
language: generic
install:
2019-03-17 17:30:48 +00:00
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
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
- <<: *cocoapods
2019-03-17 17:30:48 +00:00
name: CocoaPods Lint
2021-02-13 00:42:32 +00:00
osx_image: xcode11.4
- <<: *swiftpm_darwin
2021-02-13 00:42:32 +00:00
name: SwiftPM / Swift 5.2
osx_image: xcode11.4
- <<: *swiftpm_linux
2021-02-13 00:42:32 +00:00
name: Linux / Swift 5.2
env:
- JOB=Linux
2021-02-13 00:42:32 +00:00
- 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
2019-03-17 17:30:48 +00:00
condition: $JOB = Xcode10.1