forked from Carthage/Commandant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 1.46 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
language: objective-c
osx_image: xcode7.2
script: placeholder # workaround for https://github.com/travis-ci/travis-ci/issues/4681
matrix:
exclude:
- script: placeholder # workaround for https://github.com/travis-ci/travis-ci/issues/4681
include:
- script: script/cibuild
env: JOB=Xcode
xcode_workspace: Commandant.xcworkspace
xcode_scheme: Commandant
- script: swift build
env: JOB=SPM
before_install:
- export SWIFT_VERSION=swift-DEVELOPMENT-SNAPSHOT-2016-01-25-a
- curl https://swift.org/builds/development/xcode/$SWIFT_VERSION/$SWIFT_VERSION-osx.pkg -o swift.pkg
- sudo installer -pkg swift.pkg -target /
- export PATH="/Library/Developer/Toolchains/$SWIFT_VERSION.xctoolchain/usr/bin:$PATH"
notifications:
email: false
slack:
secure: DBDJCDEfXVb4g1/vziIYpjwCE5dh75SwBGZAcqbk6wOl6KFS9lA+fk/PtAbuXAEkRNr5qv56aQ+NPRnjSdqmhKB9bwywxUI7LA1JlvxAk6HUya0XWLLH0dvkRJG1o6QWiOnZ79gjWvl/VuN/YH9X7SgwdTTA4xush8ogP+ku8YE=
before_deploy:
- brew update
- brew install 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 = Xcode