Update to Swift 4.2, Xcode10
This commit is contained in:
parent
a56ddc314d
commit
b835652a5c
|
@ -1 +1 @@
|
||||||
4.1
|
4.2
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
included:
|
included:
|
||||||
- Sources
|
- Sources
|
||||||
- Tests
|
|
||||||
|
|
||||||
disabled_rules:
|
disabled_rules:
|
||||||
- identifier_name
|
|
||||||
- type_name
|
|
||||||
- cyclomatic_complexity
|
- cyclomatic_complexity
|
||||||
- file_length
|
- file_length
|
||||||
|
- function_body_length
|
||||||
|
- identifier_name
|
||||||
|
|
||||||
line_length: 200
|
line_length: 200
|
||||||
|
|
34
.travis.yml
34
.travis.yml
|
@ -2,42 +2,42 @@ branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
osx_image: xcode9.3
|
osx_image: xcode10
|
||||||
language: generic
|
language: generic
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: osx
|
- os: osx
|
||||||
env:
|
env:
|
||||||
- SDK="iphonesimulator11.4"
|
- SDK="iphonesimulator12.0"
|
||||||
- DESTINATION="OS=11.4,name=iPhone X"
|
- DESTINATION="OS=12.0,name=iPhone X"
|
||||||
- os: osx
|
- os: osx
|
||||||
env:
|
env:
|
||||||
- SDK="macosx10.13"
|
- SDK="macosx10.13"
|
||||||
- DESTINATION="arch=x86_64"
|
- DESTINATION="arch=x86_64"
|
||||||
- os: osx
|
- os: osx
|
||||||
env:
|
env:
|
||||||
- SDK="watchsimulator4.3"
|
- SDK="watchsimulator5.0"
|
||||||
- DESTINATION="OS=4.3,name=Apple Watch - 42mm"
|
- DESTINATION="OS=5.0,name=Apple Watch Series 4 - 44mm"
|
||||||
- os: osx
|
- os: osx
|
||||||
env:
|
env:
|
||||||
- SDK="appletvsimulator11.4"
|
- SDK="appletvsimulator12.0"
|
||||||
- DESTINATION="OS=11.4,name=Apple TV 4K"
|
- DESTINATION="OS=12.0,name=Apple TV 4K"
|
||||||
- os: linux
|
- os: linux
|
||||||
sudo: required
|
sudo: required
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
||||||
gem install xcpretty --no-rdoc --no-ri --no-document --quiet;
|
gem install xcpretty --no-rdoc --no-ri --no-document --quiet;
|
||||||
fi
|
fi
|
||||||
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
|
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
|
||||||
eval "$(curl -sL https://swiftenv.fuller.li/install.sh)";
|
eval "$(curl -sL https://swiftenv.fuller.li/install.sh)";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
||||||
- xcodebuild clean build test -project "travis-test.xcodeproj" -scheme "travis-test-Package" -sdk "$SDK" -destination "$DESTINATION" -enableCodeCoverage YES | xcpretty;
|
- xcodebuild clean build test -project Schedule.xcodeproj -scheme Schedule-Package -sdk "$SDK" -destination "$DESTINATION" -enableCodeCoverage YES | xcpretty;
|
||||||
fi
|
fi
|
||||||
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
|
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
|
||||||
swift build;
|
swift build;
|
||||||
|
@ -47,4 +47,4 @@ script:
|
||||||
after_success:
|
after_success:
|
||||||
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
||||||
bash <(curl -s https://codecov.io/bash) -J 'Schedule';
|
bash <(curl -s https://codecov.io/bash) -J 'Schedule';
|
||||||
fi
|
fi
|
|
@ -1,4 +1,4 @@
|
||||||
// swift-tools-version:4.0
|
// swift-tools-version:4.2
|
||||||
|
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue