Tokamak/.travis.yml

26 lines
952 B
YAML

# references:
# * https://www.objc.io/issues/6-build-tools/travis-ci/
# * https://github.com/supermarin/xcpretty#usage
osx_image: xcode10.1
language: swift
before_install:
# - gem install cocoapods --pre # Since Travis is not always on latest version
- brew update
- brew install swiftformat
# - brew outdated carthage || brew upgrade carthage
# cache: cocoapods
# podfile: Example/Podfile
# before_install:
# - gem install cocoapods # Since Travis is not always on latest version
# - pod install --project-directory=Example
script:
- swiftformat --lint --verbose .
- xcodebuild -scheme TokamakUIKit -sdk iphonesimulator
- xcodebuild test -enableCodeCoverage YES -scheme Tokamak
after_success:
- bash <(curl -s https://codecov.io/bash)
# - swift build
# - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/Tokamak.xcworkspace -scheme Tokamak-Example -sdk iphonesimulator11.0 ONLY_ACTIVE_ARCH=NO | xcpretty
# - pod lib lint