-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (51 loc) · 2.44 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
# os: osx
# osx_image: xcode10.2
# language: swift
# xcode_project: MeyerQuizEngine.xcodeproj # path to your xcodeproj folder
# xcode_scheme: "MeyerQuizEngine macOS"
# xcode_destination: platform=macOS
os: osx
language: swift
osx_image: xcode10.2
jobs:
include:
- name: Darwin
env:
- PROJECT='MeyerQuizEngine.xcodeproj'
# - IOS_SCHEME='MeyerQuizEngine iOS'
# - TVOS_SCHEME='MeyerQuizEngine tvOS'
# - WATCHOS_SCHEME='MeyerQuizEngine watchOS'
- MACOS_SCHEME='MeyerQuizEngine macOS'
# - IOS_DESTINATION='platform=iOS Simulator,name=iPhone X'
# - TVOS_DESTINATION='platform=tvOS Simulator,name=Apple TV 4K (at 1080p)'
# - WATCHOS_DESTINATION='name=Apple Watch - 42mm'
- MACOS_DESTINATION='platform=OS X'
before_install:
- bundle install
- brew update
- brew outdated xctool || brew upgrade xctool
script:
- set -o pipefail
- swiftlint version #cheking the version installed
- swift --version
# - xcodebuild clean build test -project "$PROJECT" -scheme "$IOS_SCHEME" -destination "$IOS_DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-ios.json" xcpretty -f `xcpretty-json-formatter`
# - bash <(curl -s https://codecov.io/bash) -cF ios -J 'MeyerQuizEngine'
# - xcodebuild clean build test -project "$PROJECT" -scheme "$TVOS_SCHEME" -destination "$TVOS_DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-tvos.json" xcpretty -f `xcpretty-json-formatter`
# - bash <(curl -s https://codecov.io/bash) -cF tvos -J 'MeyerQuizEngine'
- xcodebuild clean build test -project "$PROJECT" -scheme "$MACOS_SCHEME" -destination "$MACOS_DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-macos.json" xcpretty -f `xcpretty-json-formatter`
- bash <(curl -s https://codecov.io/bash) -cF osx -J 'MeyerQuizEngine'
# - xcodebuild clean build -project "$PROJECT" -scheme "$WATCHOS_SCHEME" -destination "$WATCHOS_DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-watchos.json" xcpretty -f `xcpretty-json-formatter`
- bundle exec danger --verbose
# - bundle exec pod lib lint --skip-tests --allow-warnings
# - name: Linux
# env: SWIFT_VERSION=5.0
# os: linux
# language: generic
# dist: trusty
# sudo: false
# install: eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
# script:
# - swift test --parallel
branches:
only:
- master