MnemonicSwift/.travis.yml

74 lines
3.9 KiB
YAML
Raw Normal View History

2019-04-24 17:02:47 -07:00
osx_image: xcode10.2
language: swift
cache:
2019-11-03 09:07:45 -08:00
bundler: true
cocoapods: true
directories:
- Carthage
env:
2019-01-08 14:23:37 -08:00
secure: ink5jhbtR9aGbiVzcrPP+jBLtYKmZ61uxmXmqwqsyAZip2zbL/tktXdLaeNhUnlJHazZF156rOFe5DFSElFmNYvpSZrXJCVMxwWKB+MJWQ879LUk6W4W65jTvkXKZmMrrUqwkOTNNMq0ycfs5tx+eFJBzHd3Z93OX0oKwb44ZjC1NC05LGJfOlZQs+7IWYKXu0XKpZ/Zo+n4jGxMPEaQCMifz8ac8WVAgsgXs5R3ANrAd6AtBHZqNLu+NzGi5FQ2u7M1EERWo69qAmmHQYKB9aYyERi4cU6KD3XF8B89szR3pH41avfYFs+ZqenF7yAm0dN5UoLBqHA5s+yBQ1kzZbvcCunEU88XjgeRuzwTUfyTq8RIN+BNzaAwSCgu/fNMaFLOZjYAXK+gtVm2elx69maC6N+hKpZblmgUtmaOQyXzY3pVNXdqCqqqzIrqSyvqPuuNSzLxjVFJUW8ycYEfB4Iywcwl74IlxWJ58WpeCgMW3cVE4l4kxw+ZWoVniumpVlp69QtgwHloUosOzmzoIwLjgEm6uGZvr3DIKKXwLZACtq8Oj7uhm8iNV4sU5eS0w+b+VC6gYCxI4yOZHWhwtBG4QtrKlEvXC0Gjy4rIXN0JuKiAHLZKiCr0YuCmks2xXv2INNnJAIBVlJ7URVY4OSY+eqCiWUSobO8n48Zu7gk=
before_install:
- brew update
2019-11-03 09:07:45 -08:00
jobs:
include:
- stage: Build - CocoaPods
2019-11-03 17:30:16 -08:00
install:
2019-11-03 09:07:45 -08:00
- brew outdated cocoapods || brew upgrade cocoapods
2019-11-03 17:30:16 -08:00
script:
2019-11-03 17:52:39 -08:00
- travis_wait 500 pod lib lint
2019-11-03 09:07:45 -08:00
- stage: Build - Carthage And Code Coverage
2019-11-03 17:30:16 -08:00
install:
2019-11-03 09:07:45 -08:00
- brew outdated carthage || brew upgrade carthage
- brew install xcodegen
- gem install slather
2019-11-03 17:30:16 -08:00
script:
# Carthage requires that XCode project files are checked in. Project.yml is
# the canonical definition for the .xcodeproj file. Remove the .xcodeproj file
# and regenerate it.
# See: https://github.com/Carthage/Carthage/issues/2684
- rm -rf MnemonicKit.xcodeproj
2019-11-03 09:07:45 -08:00
- xcodegen generate
2019-11-03 17:30:16 -08:00
# Build with Carthage
2019-11-26 00:20:33 -08:00
- travis_wait 500 carthage bootstrap --platform iOS,mac --no-use-binaries --verbose
2019-11-03 09:07:45 -08:00
- set -o pipefail && xcodebuild test -scheme MnemonicKit_iOS -destination 'platform=iOS Simulator,name=iPhone XS,OS=12.2' ONLY_ACTIVE_ARCH=YES | xcpretty
2019-11-26 00:20:33 -08:00
- set -o pipefail && xcodebuild test -scheme MnemonicKit_macOS -destination 'platform=iOS Simulator,name=iPhone XS,OS=12.2' ONLY_ACTIVE_ARCH=YES | xcpretty
2019-11-03 17:30:16 -08:00
# Generate and Upload Code Coverage
2019-11-03 09:07:45 -08:00
- slather
- bash <(curl -s https://codecov.io/bash)
2019-11-03 17:30:16 -08:00
2019-11-03 11:19:47 -08:00
- stage: Release - If Tagged Commit
2019-11-03 09:07:45 -08:00
script:
2019-11-03 11:19:47 -08:00
- echo "Checking for release tag"
2019-11-03 09:07:45 -08:00
before_deploy:
2019-11-03 17:30:16 -08:00
- echo "Found tagged release"
- echo "Deploying CocoaPods"
- brew outdated cocoapods || brew upgrade cocoapods
2019-11-03 17:52:39 -08:00
- travis_wait 500 pod trunk push --skip-import-validation --skip-tests --allow-warnings
2019-11-03 17:30:16 -08:00
- echo "Deploying Carthage"
2019-11-03 09:07:45 -08:00
- brew outdated carthage || brew upgrade carthage
- brew install xcodegen
2019-11-03 17:30:16 -08:00
# Carthage requires that XCode project files are checked in. Project.yml is
# the canonical definition for the .xcodeproj file. Remove the .xcodeproj file
# and regenerate it.
# See: https://github.com/Carthage/Carthage/issues/2684
- rm -rf MnemonicKit.xcodeproj
2019-11-03 09:07:45 -08:00
- xcodegen generate
2019-11-03 17:30:16 -08:00
2019-11-03 17:52:39 -08:00
- travis_wait 500 carthage build --no-skip-current --platform iOS,mac --cache-builds
- travis_wait 500 carthage archive $FRAMEWORK_NAME
2019-11-03 09:07:45 -08:00
deploy:
provider: releases
api_key:
secure: LR2QILLIc4f3t7Eg9uZWGZp9sBQXN1wdQzzU75ZMqcBNIw+LBNd4CgsSY7YpeJg+Rsh3++CFThvYmOMAayfrv/DKkVP1LpM782++mjOh0k174gNe6thPPTc9NcdzYJj3Ij6Cej6+nMS5CQfs06YWBWbIwV0Yc/JHFJHa+5//Q2ayk+JSKalT3mbIDhPX3gYDoGw9qVLno3XzS5FRwjzf8aENLiTtKXG8WtGeXX3IbXgsZR1xgYwm1HAlDT8cZcL5xvYB02zIGYRIBtSODGlQ0XlSN3LPtKR9McZPOM1hlfkwnCcf9f1g+AmUeHF8Grh88tt2tjZAWK7z2b+XMNL/5MgW6jhRoGa2WUQOq6D6PPS5uJhJja3j8s8oZeKotwhCfgsf+yQXqfGjcf+coOPnvXCV6wHNFHabjXvpG65AJKmxWaLFM9nZfxt89a36BLAG6BcC8thiN40WK2Jid1kjeZ/mer+4vxKl8lHPWr6tLP98KIEeX4PeqYakRJe6j89FxkQb3AbWvqQIgOzxu3HidJayE7UQLH0UvuKmP5RZn3B/vVRXXfqIwn8clexEFXc8j0yfdP7fyypKLyzBpsfFwkkNqD6/JX20Ugq7gPaYDzWHeZe4OgwFo7xbp0x42dTvuoJoMRJJrTjI4remPnqKhpJgmkH1VasnFc8x5ZwU/1E=
file: "$FRAMEWORK_NAME.framework.zip"
skip_cleanup: true
on:
repo: keefertaylor/MnemonicKit
tags: true