-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
52 lines (48 loc) · 2.47 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
osx_image: xcode10.2
language: swift
cache:
bundler: true
cocoapods: true
directories:
- Carthage
env:
secure: ink5jhbtR9aGbiVzcrPP+jBLtYKmZ61uxmXmqwqsyAZip2zbL/tktXdLaeNhUnlJHazZF156rOFe5DFSElFmNYvpSZrXJCVMxwWKB+MJWQ879LUk6W4W65jTvkXKZmMrrUqwkOTNNMq0ycfs5tx+eFJBzHd3Z93OX0oKwb44ZjC1NC05LGJfOlZQs+7IWYKXu0XKpZ/Zo+n4jGxMPEaQCMifz8ac8WVAgsgXs5R3ANrAd6AtBHZqNLu+NzGi5FQ2u7M1EERWo69qAmmHQYKB9aYyERi4cU6KD3XF8B89szR3pH41avfYFs+ZqenF7yAm0dN5UoLBqHA5s+yBQ1kzZbvcCunEU88XjgeRuzwTUfyTq8RIN+BNzaAwSCgu/fNMaFLOZjYAXK+gtVm2elx69maC6N+hKpZblmgUtmaOQyXzY3pVNXdqCqqqzIrqSyvqPuuNSzLxjVFJUW8ycYEfB4Iywcwl74IlxWJ58WpeCgMW3cVE4l4kxw+ZWoVniumpVlp69QtgwHloUosOzmzoIwLjgEm6uGZvr3DIKKXwLZACtq8Oj7uhm8iNV4sU5eS0w+b+VC6gYCxI4yOZHWhwtBG4QtrKlEvXC0Gjy4rIXN0JuKiAHLZKiCr0YuCmks2xXv2INNnJAIBVlJ7URVY4OSY+eqCiWUSobO8n48Zu7gk=
before_install:
- brew update
jobs:
include:
- stage: Build - Swift Package Manager
script:
- swift test
- stage: Build - CocoaPods
install:
- brew outdated cocoapods || brew upgrade cocoapods
script:
- travis_wait 500 pod lib lint
- stage: Build - Carthage And Code Coverage
install:
- brew outdated carthage || brew upgrade carthage
- brew install xcodegen
- gem install slather
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 Base58Swift.xcodeproj
- xcodegen generate
# Build with Carthage
- travis_wait 500 carthage bootstrap --platform iOS,mac --no-use-binaries --verbose
- set -o pipefail && xcodebuild test -scheme Base58Swift_iOS -destination 'platform=iOS Simulator,name=iPhone XS,OS=12.2' ONLY_ACTIVE_ARCH=YES | xcpretty
- set -o pipefail && xcodebuild test -scheme Base58Swift_macOS -destination 'platform=macOS,arch=x86_64' ONLY_ACTIVE_ARCH=YES | xcpretty
# Generate and Upload Code Coverage
- slather
- bash <(curl -s https://codecov.io/bash)
- stage: Build and Push Release if tagged commit
script:
- echo "Building Carthage Release If Tag is Present"
before_deploy:
- echo "Found tagged release"
- echo "Deploying CocoaPods"
- brew outdated cocoapods || brew upgrade cocoapods
- pod trunk push --skip-import-validation --skip-tests --allow-warnings