-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (65 loc) · 3.58 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
57
58
59
60
61
62
63
64
65
env:
global:
- MODULE_NAME=Foundation3
matrix:
include:
- script:
- xcodebuild test -project $MODULE_NAME.xcodeproj -scheme $MODULE_NAME-OSX
- xcodebuild test -project $MODULE_NAME.xcodeproj -scheme $MODULE_NAME-iOS -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6'
- xcodebuild build -project $MODULE_NAME.xcodeproj -scheme $MODULE_NAME-tvOS -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV 1080p'
- xcodebuild build -project $MODULE_NAME.xcodeproj -scheme $MODULE_NAME-watchOS -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch - 42mm'
os: osx
osx_image: xcode7.3
language: objective-c
env:
secure: rPZrHHTAV5m1fVIRqg6xJmnC1g7d1q1yZs0vgtje772IoNK4dm0M471R6E6FHGM3aDf+yYJ1LupFS0QRJqbB1vqBTlkssbwO1/5tFJU62pK9bmbdLNae6U85QDK6axHdLcm0W7RhJR0MMyKOQjJ6113PSZ40i7pFUYWd1NPNdR+NADdHddyFzzFJOqSRd7Io+p1p36VHcbUfvdpBftiUFLVEwuzPiKJdyVL4HiIxeAj6b0zH4P1PojZ+gXYXRap1Bq1IlCbHauTCcqQJWgHYeaMnmyLmqPAKhEDZM/ZyPUR6ZDFz+t86eMVmc2LvSkTnf3Xi3g/wfCXSk7uni+WIoC5lvoRrE3qxvEmswQe9U92qPD+rQkDC8dndCt2URy50gQq/Z6QQBOk+n2am80O/qvkVrPqwt1JWlzmZUxhTCosOJt5AonbHvXnFh69iXyFeyKiypa7pl9oBMJLCqrv0zJvN6G3sUVpQvzuqUz3OCQvdtXX3ZRGtBbwHtI4kFvZkDqiNq+wZWILqeUfgq5xds4aa6MvDEPK8DOctiBHVmnyVfRUd2v9kfAxeBRVp8qxqViLhehQ2DuE7nOND+LoXDVpQ7+I0/7QmF6w80BEzCJvJEVnd0KBChsJMYfV77fKuYR1rNoUG496ayE3TSS/knEP31eMyFiEF8FTtfDIIfig=
before_install:
- brew update
- brew outdated carthage || brew upgrade carthage
# - brew outdated xctool || brew upgrade xctool
before_script:
# bootstrap the dependencies for the project
# you can remove if you don't have dependencies
- carthage bootstrap
deploy:
provider: script
script: .scripts/pod
skip_cleanup: true
on:
repo: crossroadlabs/Foundation3
tags: true
- script:
- xcodebuild test -project $MODULE_NAME.xcodeproj -scheme $MODULE_NAME-OSX
#- xcodebuild test -project $MODULE_NAME.xcodeproj -scheme $MODULE_NAME-iOS -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6'
- xcodebuild test -project $MODULE_NAME.xcodeproj -scheme $MODULE_NAME-tvOS -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV 1080p'
- xcodebuild build -project $MODULE_NAME.xcodeproj -scheme $MODULE_NAME-watchOS -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch - 42mm'
os: osx
osx_image: xcode8
language: objective-c
before_install:
- brew update
- brew outdated carthage || brew upgrade carthage
# - brew outdated xctool || brew upgrade xctool
before_script:
# bootstrap the dependencies for the project
# you can remove if you don't have dependencies
- carthage bootstrap
- script:
- swift build
- swift test
sudo: required
dist: trusty
language: generic
before_install:
# install original swift distribution
- wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import -
- cd ..
- export SWIFT_VERSION="swift-3.0-preview-1"
- wget https://swift.org/builds/$SWIFT_VERSION/ubuntu1404/$SWIFT_VERSION/$SWIFT_VERSION-ubuntu14.04.tar.gz
- tar xzf $SWIFT_VERSION-ubuntu14.04.tar.gz
- export PATH="${PWD}/${SWIFT_VERSION}-ubuntu14.04/usr/bin:${PATH}"
- export LD_LIBRARY_PATH="${PWD}/${SWIFT_VERSION}-ubuntu14.04/usr/lib/swift/linux/:$LD_LIBRARY_PATH"
# get back home
- cd $MODULE_NAME
notifications:
email: false