forked from scottrhoyt/SwiftyTextTable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (54 loc) · 2.12 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
env:
global:
- FRAMEWORK_NAME=SwiftyTextTable
jobs:
include:
- stage: Test
script: set -o pipefail && xcodebuild -scheme SwiftyTextTable -project SwiftyTextTable.xcodeproj clean build test | xcpretty
name: "Xcode 9"
env:
- RUN_DEPLOY=yes
os: osx
osx_image: xcode9.4
language: objective-c
before_install:
- ./scripts/upstall-carthage.sh
- ./scripts/upstall-swiftlint.sh
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- carthage build --no-skip-current
- carthage archive $FRAMEWORK_NAME
- stage: Test
script:
- TOOLCHAINS=swift swift build
- TOOLCHAINS=swift swift test
name: "Swift Package Manager"
os: osx
osx_image: xcode9
language: objective-c
- stage: Test
script:
- swift build
- swift test
name: "Linux Swift 4.0"
env:
- SWIFT_VERSION=4.0
sudo: required
dist: trusty
language: generic
install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
#allow_failures:
# - env: TRAVIS_OS_NAME=linux
deploy:
provider: releases
api_key:
secure: CLgRTCkr9FXlDS9bTejaSCUN78lT110kyFXsod+LAGZo/zqzebVwo/XTqSIdHV6raWP+KsazUNyt4YhjZgaLG2CCf+MZVY2yelnuE419/rgSqW2FrVkcMqhIc+vFAp57qK/E8mC5GnZO35uhxZ0CM98h75G7pL2ebWu/WmB9zV3nujNl1mTXRIMD9SRihjzM+RjyrNAPZyqvVkFM4nJBUTA3jW+QsbqcNy7ds1Erz/kFsuBHCTbbYaqq+W7vZAL7NQlaqfpcN1jSxh0PuaEjLicCMqzDpkd0ODeu1F0r9Ql/9Nf7QiWv8BusBdwBqee2p+ET7h2hXYXzkNYkVCz1Gp8twviXcQNyfM3h8lhqcvsYPcjXIWEHzwgNsUlltFH62//JqlJegU17p2WniJXtHNHsjcEnjC1ngLix+IBSv9z1uJPYGisSA4AwLjiiEQc8UhRNT8DOmrVmRcODIU8PMfJPiwmA8eBpVb6bwD/zwMDtH3E40gO1qTIvz496I0VT+81GfDYv0xfHcER++OBpCNjLnnInTFCDmF8XaPR14jusCyWbAeL5pGb4K6HcwYPWM5g27/2yaUNY7haI1BFi/p/apQ9sFzWeHJ0BG3hwNUPrLwIsqTyXZm5Q/OuDeaHa7Ye9qbJtO281m09a2qWEmBx/fZHQuT4eNbe1W/xoWcA=
file: $FRAMEWORK_NAME.framework.zip
skip_cleanup: true
on:
repo: scottrhoyt/SwiftyTextTable
branch: master
tags: true
condition: $RUN_DEPLOY = yes