forked from Swinject/Swinject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (44 loc) · 1.69 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
language: objective-c
env:
global:
- LC_CTYPE=en_US.UTF-8
- PROJECT=Swinject.xcodeproj
git:
submodules: false
matrix:
include:
- env: JOB="LINUX_SPM" SWIFT_VERSION="5.0"
os: linux
language: generic
sudo: required
dist: trusty
before_install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
script:
- mv .Package.Test.swift Package.swift
- swift build
- swift test
- env: JOB="POD_LINT"
osx_image: xcode10.2
before_install:
script:
- pod lib lint
- env: JOB="XCODE" DEST="OS=9.3,name=iPhone 6" SCHEME="Swinject-iOS" SDK="iphonesimulator" ACTION="test" PLATFORM="iOS"
osx_image: xcode10.2
- env: JOB="XCODE" DEST="arch=x86_64" SCHEME="Swinject-macOS" SDK="macosx" ACTION="test" PLATFORM="OSX"
osx_image: xcode10.2
- env: JOB="XCODE" DEST="OS=9.2,name=Apple TV 1080p" SCHEME="Swinject-tvOS" SDK="appletvsimulator" ACTION="test" PLATFORM="tvOS"
osx_image: xcode10.2
- env: JOB="XCODE" DEST="OS=2.2,name=Apple Watch - 42mm" SCHEME="Swinject-watchOS" SDK="watchsimulator" ACTION="build" PLATFORM="watchOS"
osx_image: xcode10.2
before_install:
- curl -L -O https://github.com/Carthage/Carthage/releases/download/0.33.0/Carthage.pkg
- sudo installer -pkg Carthage.pkg -target /
- rm Carthage.pkg
- carthage bootstrap --verbose --platform $PLATFORM
script:
- set -o pipefail
- xcodebuild "$ACTION" -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DEST" -configuration Release ENABLE_TESTABILITY=YES | xcpretty
notifications:
email:
on_success: never